fix: 优化

v3
chenhc 2 months ago
parent ef5f9a4570
commit 777f1775a5

@ -206,7 +206,7 @@ public class ThirdAliDrugController {
if (StrUtil.isEmpty(cpmctymc)) {
return ResultVOUtils.error(ResultEnum.DATA_REPEAT,"标识参数不能为空");
}
List<ThirdAliDrug> add = thirdAliDrugService.updateByCpmctymc(cpmctymc);
List<ThirdAliDrug> add = thirdAliDrugService.updateByCpmctymc(thirdAliDrug);
return ResultVOUtils.success(add);
}

@ -189,14 +189,22 @@ public class ThirdAliDrugService extends ServiceImpl<ThirdAliDrugMapper, ThirdAl
}
}
public List<ThirdAliDrug> updateByCpmctymc(String cpmctymc) {
public List<ThirdAliDrug> updateByCpmctymc(ThirdAliDrugRequest thirdAliDrug) {
ThirdAliDrugAddRequest thirdAliDrugAddRequest = new ThirdAliDrugAddRequest();
// TODO: 2025/1/4 这里用调用的 入参 cpmctymc
List<ThirdAliDrug> add = null;
AlihealthThirdAliDrugInsertReqeust request = new AlihealthThirdAliDrugInsertReqeust();
AlihealthKytDrugrescodeReqeust alihealthKytDrugrescodeReqeust = new AlihealthKytDrugrescodeReqeust();
alihealthKytDrugrescodeReqeust.setPhysic_name(cpmctymc);
String cpmctymc = thirdAliDrug.getCpmctymc();
String approvalNum = thirdAliDrug.getApprovalNum();
if (StrUtil.isNotBlank(cpmctymc)){
alihealthKytDrugrescodeReqeust.setPhysic_name(cpmctymc);
}
if (StrUtil.isNotBlank(approvalNum)){
alihealthKytDrugrescodeReqeust.setApproval_licence_no(approvalNum);
}
request.setAlihealthKytDrugrescodeReqeust(alihealthKytDrugrescodeReqeust);
// request.setIsAutoUpdate(true);

Loading…
Cancel
Save