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 = '')