diff --git a/src/main/java/com/glxp/api/controller/inout/IoOrderDetailBizController.java b/src/main/java/com/glxp/api/controller/inout/IoOrderDetailBizController.java index 2d7a3169..2659c77b 100644 --- a/src/main/java/com/glxp/api/controller/inout/IoOrderDetailBizController.java +++ b/src/main/java/com/glxp/api/controller/inout/IoOrderDetailBizController.java @@ -736,7 +736,8 @@ public class IoOrderDetailBizController extends BaseController { AliYljgBillDetailDrug aliYljgBillDetailDrug = aliYljgBillDetailDrugList.get(i); - String code = aliYljgBillDetailDrug.getAliYljgBillDetailDrugCodeList().get(0).getCode(); + AliYljgBillDetailDrugCode aliYljgBillDetailDrugCode1 = aliYljgBillDetailDrug.getAliYljgBillDetailDrugCodeList().get(0); + String code = aliYljgBillDetailDrugCode1.getCode(); if (StrUtil.isEmpty(code)) { return ResultVOUtils.error("单据码为空!"); } @@ -755,7 +756,7 @@ public class IoOrderDetailBizController extends BaseController { filterUdiRelRequest.setNameCode(nameCode); List udiRelevanceResponses = udiRelevanceDao.filterUdiRelevance(filterUdiRelRequest); if (CollUtil.isEmpty(udiRelevanceResponses)) { - return ResultVOUtils.error("未通过药品标识获取详情信息!"); + return ResultVOUtils.error("未通过药品标识【"+aliYljgBillDetailDrug.getProdName()+nameCode+"】获取详情信息!"); } UdiRelevanceResponse udiRelevanceResponse = udiRelevanceResponses.get(0); List aliYljgBillDetailDrugCodeList1 = aliYljgBillDetailDrug.getAliYljgBillDetailDrugCodeList(); diff --git a/src/main/resources/mybatis/mapper/basic/UdiRelevanceDao.xml b/src/main/resources/mybatis/mapper/basic/UdiRelevanceDao.xml index 612c1f13..e16503d4 100644 --- a/src/main/resources/mybatis/mapper/basic/UdiRelevanceDao.xml +++ b/src/main/resources/mybatis/mapper/basic/UdiRelevanceDao.xml @@ -592,16 +592,28 @@ AND diType = #{diType} - + AND (thirdId ]]> '' or thirdId1 ]]> '' or thirdId2 ]]> '' or - thirdId3 ]]> '' or thirdId4 ]]> '') - - and basic_products.originUuid ]]> '' - + thirdId3 ]]> '' or thirdId4 ]]> '') + and basic_products.originUuid ]]> '' - + + AND (thirdId is not null or thirdId1 is not null) + + + AND basic_products.nameCode is not null + + AND basic_products.originUuid is NULL + + AND ((thirdId = '' or thirdId is null) or (thirdId1 = '' or thirdId1 is null) + ) + + + AND ( (mainId = '' or mainId is null) or (basic_products.nameCode = '' or basic_products.nameCode is null) + ) + AND (mainId is NULL or mainId = '') diff --git a/src/main/resources/mybatis/mapper/basic/UdiRlSupDao.xml b/src/main/resources/mybatis/mapper/basic/UdiRlSupDao.xml index 85dacea2..840d8f0e 100644 --- a/src/main/resources/mybatis/mapper/basic/UdiRlSupDao.xml +++ b/src/main/resources/mybatis/mapper/basic/UdiRlSupDao.xml @@ -210,15 +210,28 @@ AND diType = #{diType} - - AND (basic_udirel.thirdId ]]> '' or basic_udirel.thirdId1 ]]> '' or - basic_udirel.thirdId2 ]]> '' or - basic_udirel.thirdId3 ]]> '' or basic_udirel.thirdId4 ]]> '') + + AND (basic_udirel.thirdId ]]> '' or basic_udirel.thirdId1 ]]> '' or basic_udirel.thirdId2 ]]> '' or + tbasic_udirel.hirdId3 ]]> '' or basic_udirel.thirdId4 ]]> '') and basic_products.originUuid ]]> '' - + + AND (basic_udirel.thirdId is not null or basic_udirel.thirdId1 is not null) + + + AND basic_products.nameCode is not null + + AND basic_products.originUuid is NULL + + AND ((basic_udirel.thirdId = '' or basic_udirel.thirdId is null) or (basic_udirel.thirdId1 = '' or basic_udirel.thirdId1 is null) + ) + + + AND ( (basic_udirel.mainId = '' or basic_udirel.mainId is null) or (basic_products.nameCode = '' or basic_products.nameCode is null) + ) + AND (basic_udirel.thirdId IS NULL or basic_udirel.thirdId = '') and basic_products.originUuid ]]> ''