From 1b688f400e7beaef65f8fe312ad7088e9d09caa9 Mon Sep 17 00:00:00 2001 From: wangwei <1610949092@qq.com> Date: Thu, 19 Dec 2024 10:20:48 +0800 Subject: [PATCH] =?UTF-8?q?12/19=20=E8=8D=AF=E5=93=81=E5=AF=B9=E7=85=A7?= =?UTF-8?q?=E4=BC=98=E5=8C=961.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../inout/IoOrderDetailBizController.java | 5 ++-- .../mybatis/mapper/basic/UdiRelevanceDao.xml | 24 ++++++++++++++----- .../mybatis/mapper/basic/UdiRlSupDao.xml | 23 ++++++++++++++---- 3 files changed, 39 insertions(+), 13 deletions(-) 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 ]]> ''