增加调用阿里查询药品码段信息

选入药品之后判断国家库有没有有就获取 没有就去调用阿里接口(厂家ID获取有问题先写死)
dev_unify
qiuyt 8 months ago
parent 864ec46a6e
commit 610408ac5c

@ -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<ThirdAliDrug> 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());

Loading…
Cancel
Save