From 777f1775a5659759cd3c8c0afe16a7d982751642 Mon Sep 17 00:00:00 2001 From: chenhc <2369838784@qq.com> Date: Thu, 23 Jan 2025 15:26:48 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/collect/ThirdAliDrugController.java | 2 +- .../admin/service/collect/ThirdAliDrugService.java | 12 ++++++++++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/glxp/udidl/admin/controller/collect/ThirdAliDrugController.java b/src/main/java/com/glxp/udidl/admin/controller/collect/ThirdAliDrugController.java index 55e0647..32174d2 100644 --- a/src/main/java/com/glxp/udidl/admin/controller/collect/ThirdAliDrugController.java +++ b/src/main/java/com/glxp/udidl/admin/controller/collect/ThirdAliDrugController.java @@ -206,7 +206,7 @@ public class ThirdAliDrugController { if (StrUtil.isEmpty(cpmctymc)) { return ResultVOUtils.error(ResultEnum.DATA_REPEAT,"标识参数不能为空"); } - List add = thirdAliDrugService.updateByCpmctymc(cpmctymc); + List add = thirdAliDrugService.updateByCpmctymc(thirdAliDrug); return ResultVOUtils.success(add); } diff --git a/src/main/java/com/glxp/udidl/admin/service/collect/ThirdAliDrugService.java b/src/main/java/com/glxp/udidl/admin/service/collect/ThirdAliDrugService.java index 5a10977..9610a64 100644 --- a/src/main/java/com/glxp/udidl/admin/service/collect/ThirdAliDrugService.java +++ b/src/main/java/com/glxp/udidl/admin/service/collect/ThirdAliDrugService.java @@ -189,14 +189,22 @@ public class ThirdAliDrugService extends ServiceImpl updateByCpmctymc(String cpmctymc) { + public List updateByCpmctymc(ThirdAliDrugRequest thirdAliDrug) { ThirdAliDrugAddRequest thirdAliDrugAddRequest = new ThirdAliDrugAddRequest(); // TODO: 2025/1/4 这里用调用的 入参 cpmctymc List 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);