多码融合表增加字段和逻辑

v3
qiuyt 3 months ago
parent afdbcea36f
commit d0109a4969

@ -60,6 +60,10 @@ public class ThirdAliDrugController {
} }
List<ThirdAliDrug> list = thirdAliDrugService.filterList(thirdAliDrug); List<ThirdAliDrug> list = thirdAliDrugService.filterList(thirdAliDrug);
if (CollUtil.isEmpty(list)){ if (CollUtil.isEmpty(list)){
// 剔除当前选入的产品编码要给他删了再重新查一次判断 如果还是查不到就去查阿里
thirdAliDrug.setNameCodeIn(null);
List<ThirdAliDrug> listNew = thirdAliDrugService.filterList(thirdAliDrug);
if (CollUtil.isEmpty(listNew)){
ThirdAliDrugAddRequest thirdAliDrugAddRequest = new ThirdAliDrugAddRequest(); ThirdAliDrugAddRequest thirdAliDrugAddRequest = new ThirdAliDrugAddRequest();
AlihealthThirdAliDrugInsertReqeust request = new AlihealthThirdAliDrugInsertReqeust(); AlihealthThirdAliDrugInsertReqeust request = new AlihealthThirdAliDrugInsertReqeust();
AlihealthKytDrugrescodeReqeust alihealthKytDrugrescodeReqeust = new AlihealthKytDrugrescodeReqeust(); AlihealthKytDrugrescodeReqeust alihealthKytDrugrescodeReqeust = new AlihealthKytDrugrescodeReqeust();
@ -89,7 +93,7 @@ public class ThirdAliDrugController {
log.error("异步更新阿里药品数据错误==="+e.getMessage()); log.error("异步更新阿里药品数据错误==="+e.getMessage());
} }
}); });
}
} }
PageInfo<ThirdAliDrug> pageInfo = new PageInfo<>(list); PageInfo<ThirdAliDrug> pageInfo = new PageInfo<>(list);

@ -8,6 +8,7 @@ import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import java.util.Date; import java.util.Date;
import java.util.List;
@Data @Data
public class ThirdAliDrugRequest extends ListPageRequest { public class ThirdAliDrugRequest extends ListPageRequest {
@ -108,5 +109,6 @@ public class ThirdAliDrugRequest extends ListPageRequest {
private String approvalNum; private String approvalNum;
private List<String> nameCodeIn;
} }

@ -100,6 +100,12 @@
<if test="bzgg != '' and bzgg != null"> <if test="bzgg != '' and bzgg != null">
AND bzgg LIKE concat('%', #{bzgg}, '%') AND bzgg LIKE concat('%', #{bzgg}, '%')
</if> </if>
<if test="nameCodeIn!=null and nameCodeIn.size()>0">
AND nameCode NOT IN
<foreach collection="nameCodeIn" item="id" open="(" close=")" separator=",">
#{id}
</foreach>
</if>
</where> </where>
</select> </select>

Loading…
Cancel
Save