From 610408ac5c7675ce0a4f565faa336aa550501731 Mon Sep 17 00:00:00 2001 From: qiuyt Date: Fri, 29 Nov 2024 16:32:04 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=B0=83=E7=94=A8=E9=98=BF?= =?UTF-8?q?=E9=87=8C=E6=9F=A5=E8=AF=A2=E8=8D=AF=E5=93=81=E7=A0=81=E6=AE=B5?= =?UTF-8?q?=E4=BF=A1=E6=81=AF=20=E9=80=89=E5=85=A5=E8=8D=AF=E5=93=81?= =?UTF-8?q?=E4=B9=8B=E5=90=8E=E5=88=A4=E6=96=AD=E5=9B=BD=E5=AE=B6=E5=BA=93?= =?UTF-8?q?=E6=9C=89=E6=B2=A1=E6=9C=89=E6=9C=89=E5=B0=B1=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=20=E6=B2=A1=E6=9C=89=E5=B0=B1=E5=8E=BB=E8=B0=83=E7=94=A8?= =?UTF-8?q?=E9=98=BF=E9=87=8C=E6=8E=A5=E5=8F=A3(=E5=8E=82=E5=AE=B6ID?= =?UTF-8?q?=E8=8E=B7=E5=8F=96=E6=9C=89=E9=97=AE=E9=A2=98=E5=85=88=E5=86=99?= =?UTF-8?q?=E6=AD=BB)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../glxp/api/service/basic/UdiContrastService.java | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/glxp/api/service/basic/UdiContrastService.java b/src/main/java/com/glxp/api/service/basic/UdiContrastService.java index 39fdf6e4..0f73280a 100644 --- a/src/main/java/com/glxp/api/service/basic/UdiContrastService.java +++ b/src/main/java/com/glxp/api/service/basic/UdiContrastService.java @@ -11,6 +11,7 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.glxp.api.common.res.BaseResponse; import com.glxp.api.constant.ConstantStatus; import com.glxp.api.dao.basic.UdiRelevanceDao; +import com.glxp.api.entity.auth.CustomerInfoEntity; import com.glxp.api.entity.basic.UdiProductEntity; import com.glxp.api.entity.basic.UdiRelevanceEntity; import com.glxp.api.entity.thrsys.*; @@ -26,6 +27,8 @@ import com.glxp.api.req.thrsys.ThrInsDrugFeeRequest; import com.glxp.api.req.thrsys.ThrInsMaterialFeeRequest; import com.glxp.api.res.PageSimpleResponse; import com.glxp.api.res.basic.UdiRelevanceResponse; +import com.glxp.api.service.auth.CustomerInfoService; +import com.glxp.api.service.auth.CustomerService; import com.glxp.api.service.thrsys.BasicInsMaterialService; import com.glxp.api.service.thrsys.ThirdAliDrugService; import com.glxp.api.service.thrsys.ThrProductsService; @@ -68,6 +71,10 @@ public class UdiContrastService { @Resource YbDrugService ybDrugService; @Resource + private CustomerService customerService; + @Resource + private CustomerInfoService customerInfoService; + @Resource private AlihealthUtils alihealthUtils; @Value("${UDI_SERVER_URL}") private String udiUrl; @@ -331,8 +338,12 @@ public class UdiContrastService { }else { List thirdAliDrugListNew; + + String customerId =customerService.getCustomerId(); + CustomerInfoEntity customerInfoEntity = customerInfoService.selectById(customerId); + AlihealthThirdAliDrugInsertReqeust alihealthThirdAliDrugInsertReqeust = new AlihealthThirdAliDrugInsertReqeust(); - alihealthThirdAliDrugInsertReqeust.setErpId("123"); + alihealthThirdAliDrugInsertReqeust.setErpId("73157692795424"); alihealthThirdAliDrugInsertReqeust.setAppSecret("5231c601505706a9d49823c3dfe2cb01"); AlihealthKytDrugrescodeReqeust alihealthKytDrugrescodeReqeust = new AlihealthKytDrugrescodeReqeust(); alihealthKytDrugrescodeReqeust.setPhysic_name(thrProductsEntity.getName());