选入药品逻辑优化

dev_drug
qiuyt 3 months ago
parent 83cc07aee8
commit 38864b85f2

@ -168,6 +168,10 @@ public class AlihealthBusController extends BaseController {
if (com.glxp.api.util.StringUtils.isNotEmpty(alihealthThirdAliDrugInsertReqeust.getBzgg())) { if (com.glxp.api.util.StringUtils.isNotEmpty(alihealthThirdAliDrugInsertReqeust.getBzgg())) {
map.put("bzgg", alihealthThirdAliDrugInsertReqeust.getBzgg()); map.put("bzgg", alihealthThirdAliDrugInsertReqeust.getBzgg());
}
if (com.glxp.api.util.StringUtils.isNotEmpty(alihealthThirdAliDrugInsertReqeust.getNameCode())) {
map.put("nameCode", alihealthThirdAliDrugInsertReqeust.getNameCode());
} }
map.put("page", alihealthThirdAliDrugInsertReqeust.getPage()); map.put("page", alihealthThirdAliDrugInsertReqeust.getPage());
map.put("limit", alihealthThirdAliDrugInsertReqeust.getLimit()); map.put("limit", alihealthThirdAliDrugInsertReqeust.getLimit());

@ -130,7 +130,7 @@ public class UdiContrastController extends BaseController{
basicProductsCreateDto.setMainId(thirdId); basicProductsCreateDto.setMainId(thirdId);
basicProductsCreateDto.setDrugCheckMark(false); basicProductsCreateDto.setDrugCheckMark(false);
udiContrastService.createOnlyMainId(basicProductsCreateDto); return udiContrastService.createOnlyMainId(basicProductsCreateDto);
} }
} }
if (StrUtil.isNotBlank(buffer.toString())) { if (StrUtil.isNotBlank(buffer.toString())) {

@ -112,6 +112,8 @@ public class ThirdAliDrugController extends BaseController {
alihealthThirdAliDrugInsertReqeust.setPage(thirdAliDrug.getPage()); alihealthThirdAliDrugInsertReqeust.setPage(thirdAliDrug.getPage());
alihealthThirdAliDrugInsertReqeust.setLimit(thirdAliDrug.getLimit()); alihealthThirdAliDrugInsertReqeust.setLimit(thirdAliDrug.getLimit());
alihealthThirdAliDrugInsertReqeust.setDrugCheckMark(true); alihealthThirdAliDrugInsertReqeust.setDrugCheckMark(true);
alihealthThirdAliDrugInsertReqeust.setNameCode(thirdAliDrug.getNameCode());
AlihealthKytDrugrescodeReqeust alihealthKytDrugrescodeReqeust = new AlihealthKytDrugrescodeReqeust(); AlihealthKytDrugrescodeReqeust alihealthKytDrugrescodeReqeust = new AlihealthKytDrugrescodeReqeust();
alihealthKytDrugrescodeReqeust.setPhysic_name(thirdAliDrug.getCpmctymc()); alihealthKytDrugrescodeReqeust.setPhysic_name(thirdAliDrug.getCpmctymc());
alihealthKytDrugrescodeReqeust.setApproval_licence_no(thirdAliDrug.getApprovalNum()); alihealthKytDrugrescodeReqeust.setApproval_licence_no(thirdAliDrug.getApprovalNum());

@ -22,6 +22,7 @@ public class AlihealthThirdAliDrugInsertReqeust extends ListPageRequest {
* *
*/ */
private boolean drugCheckMark; private boolean drugCheckMark;
private String nameCode;
private AlihealthKytDrugrescodeReqeust alihealthKytDrugrescodeReqeust; private AlihealthKytDrugrescodeReqeust alihealthKytDrugrescodeReqeust;
} }

@ -241,7 +241,7 @@ public class UdiContrastService {
private AlihealthBusController alihealthBusController; private AlihealthBusController alihealthBusController;
// @Transactional // @Transactional
public void createOnlyMainId(BasicProductsCreateDto basicProductsCreateDto) { public BaseResponse createOnlyMainId(BasicProductsCreateDto basicProductsCreateDto) {
String mainId = basicProductsCreateDto.getMainId(); String mainId = basicProductsCreateDto.getMainId();
FilterThrProductsRequest filterThrProductsRequest = new FilterThrProductsRequest(); FilterThrProductsRequest filterThrProductsRequest = new FilterThrProductsRequest();
filterThrProductsRequest.setCode(mainId); filterThrProductsRequest.setCode(mainId);
@ -326,10 +326,11 @@ public class UdiContrastService {
// udiProductEntity.setSptm(ybDrug.getBusinessLicense()); // udiProductEntity.setSptm(ybDrug.getBusinessLicense());
udiProductEntity.setPrepnUnit(ybDrug.getRealityMedicinemodel()); udiProductEntity.setPrepnUnit(ybDrug.getRealityMedicinemodel());
} else { } else {
udiProductEntity.setCpmctymc(thrProductsEntity.getName()); return ResultVOUtils.error(500,"未能查询到此医保编码");
// udiProductEntity.setCpmctymc(thrProductsEntity.getName());
} }
if (StrUtil.isEmpty(udiProductEntity.getZczbhhzbapzbh()) || StrUtil.isEmpty(udiProductEntity.getCpmctymc())) { if (StrUtil.isEmpty(udiProductEntity.getZczbhhzbapzbh()) || StrUtil.isEmpty(udiProductEntity.getCpmctymc())) {
return; return ResultVOUtils.success();
} }
// 本地查询先注释了 // 本地查询先注释了
List<ThirdAliDrug> thirdAliDrugList = new ArrayList<>(); List<ThirdAliDrug> thirdAliDrugList = new ArrayList<>();
@ -563,7 +564,7 @@ public class UdiContrastService {
if (!aBoolean) { if (!aBoolean) {
throw new JsonException(500, "系统繁忙,"); throw new JsonException(500, "系统繁忙,");
} }
return; return ResultVOUtils.success();
// UdiProductEntity udiProductEntity = new UdiProductEntity(); // UdiProductEntity udiProductEntity = new UdiProductEntity();
// BeanUtils.copyProperties(thrProductsEntity, udiProductEntity); // BeanUtils.copyProperties(thrProductsEntity, udiProductEntity);
// if (thrProductsEntity.getProductType() != 2){ // if (thrProductsEntity.getProductType() != 2){
@ -603,6 +604,7 @@ public class UdiContrastService {
// udiRelevanceEntity = udiRelevanceService.insertDefaultLevel(udiRelevanceEntity, udiProductEntity); // udiRelevanceEntity = udiRelevanceService.insertDefaultLevel(udiRelevanceEntity, udiProductEntity);
// udiRelevanceService.insertUdiRelevance(udiRelevanceEntity); // udiRelevanceService.insertUdiRelevance(udiRelevanceEntity);
} }
return ResultVOUtils.success();
} }

Loading…
Cancel
Save