From 7441b65c350dcfa308d14078319a6d309177c4c5 Mon Sep 17 00:00:00 2001 From: wangwei <1610949092@qq.com> Date: Tue, 26 Nov 2024 09:57:33 +0800 Subject: [PATCH] =?UTF-8?q?11/26=20=E8=8D=AF=E5=93=81=E5=AD=97=E5=85=B8?= =?UTF-8?q?=E5=AF=B9=E7=85=A7=E6=9D=A1=E4=BB=B6sql=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mybatis/mapper/basic/UdiRelevanceDao.xml | 18 +++++++++++++----- .../mapper/purchase/PurApplyDetailDao.xml | 1 + 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/src/main/resources/mybatis/mapper/basic/UdiRelevanceDao.xml b/src/main/resources/mybatis/mapper/basic/UdiRelevanceDao.xml index bf42f71d0..d74f10e90 100644 --- a/src/main/resources/mybatis/mapper/basic/UdiRelevanceDao.xml +++ b/src/main/resources/mybatis/mapper/basic/UdiRelevanceDao.xml @@ -668,16 +668,24 @@ AND diType = #{diType} - + AND (thirdId ]]> '' or thirdId1 ]]> '' or thirdId2 ]]> '' or thirdId3 ]]> '' or thirdId4 ]]> '') - - and basic_products.originUuid ]]> '' - + and basic_products.originUuid ]]> '' - + + AND (thirdId ]]> '' or thirdId1 ]]> '' or thirdId2 ]]> '' or + thirdId3 ]]> '' or thirdId4 ]]> '') + and mainId ]]> '' + + AND basic_products.originUuid is NULL + + AND (thirdId = '' or thirdId1 = '' + or thirdId2 = '' or thirdId3 = '' + or thirdId4 = '') AND mainId = '' + AND (mainId is NULL or mainId = '') diff --git a/src/main/resources/mybatis/mapper/purchase/PurApplyDetailDao.xml b/src/main/resources/mybatis/mapper/purchase/PurApplyDetailDao.xml index c16a78039..cfac07018 100644 --- a/src/main/resources/mybatis/mapper/purchase/PurApplyDetailDao.xml +++ b/src/main/resources/mybatis/mapper/purchase/PurApplyDetailDao.xml @@ -25,6 +25,7 @@ pur_apply_detail.*, basic_products.nameCode nameCode, basic_products.ggxh spec, + basic_products.bzgg, basic_products.packUnit, basic_products.manufactory, basic_products.ylqxzcrbarmc,