From ae63015073dbe931eb3a47011b697b88f30caf15 Mon Sep 17 00:00:00 2001 From: wangwei <1610949092@qq.com> Date: Tue, 26 Nov 2024 10:16:03 +0800 Subject: [PATCH] =?UTF-8?q?11/26=20sql=E4=BC=98=E5=8C=961.1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/mybatis/mapper/basic/UdiRelevanceDao.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/resources/mybatis/mapper/basic/UdiRelevanceDao.xml b/src/main/resources/mybatis/mapper/basic/UdiRelevanceDao.xml index d74f10e90..74239c55a 100644 --- a/src/main/resources/mybatis/mapper/basic/UdiRelevanceDao.xml +++ b/src/main/resources/mybatis/mapper/basic/UdiRelevanceDao.xml @@ -682,9 +682,9 @@ AND basic_products.originUuid is NULL - AND (thirdId = '' or thirdId1 = '' - or thirdId2 = '' or thirdId3 = '' - or thirdId4 = '') AND mainId = '' + AND ((thirdId = '' or thirdId is null) or (thirdId1 = '' or thirdId1 is null) + or (thirdId2 = '' or thirdId2 is null) or (thirdId3 = '' or thirdId3 is null) + or (thirdId4 = '' or thirdId4 is null)) AND (mainId = '' or mainId is null) AND (mainId is NULL or mainId = '')