diff --git a/src/main/resources/mybatis/mapper/basic/UdiRelevanceDao.xml b/src/main/resources/mybatis/mapper/basic/UdiRelevanceDao.xml
index e6be3b5c1..e06c6e01b 100644
--- a/src/main/resources/mybatis/mapper/basic/UdiRelevanceDao.xml
+++ b/src/main/resources/mybatis/mapper/basic/UdiRelevanceDao.xml
@@ -305,31 +305,30 @@
AND supName LIKE concat('%', #{supName}, '%')
+
+ AND nameCode LIKE concat(#{nameCode}, '%')
+
AND cpmctymc LIKE concat('%', #{cpmctymc}, '%')
AND ggxh LIKE concat('%', #{ggxh}, '%')
-
- AND nameCode LIKE concat(#{nameCode}, '%')
+
+ and (
+ nameCode LIKE concat('%', #{nameCode}, '%')
+ or ybbm LIKE concat('%', #{nameCode}, '%')
+ or sptm LIKE concat('%', #{nameCode}, '%'))
AND (basic_udirel.isDisable is null or basic_udirel.isDisable = false)
-
-
- and (
- nameCode LIKE concat('%', #{unionCode}, '%')
- or basic_udirel.ybbm LIKE concat('%', #{unionCode}, '%')
- or basic_udirel.sptm LIKE concat('%', #{unionCode}, '%'))
-
and (thirdId LIKE concat('%', #{thrPiId}, '%')
- or thirdId1 LIKE concat('%', #{thrPiId}, '%')
- or thirdId2 LIKE concat('%', #{thrPiId}, '%')
- or thirdId3 LIKE concat('%', #{thrPiId}, '%')
- or thirdId4 LIKE concat('%', #{thrPiId}, '%'))
+ or thirdId1 LIKE concat('%', #{thrPiId}, '%')
+ or thirdId2 LIKE concat('%', #{thrPiId}, '%')
+ or thirdId3 LIKE concat('%', #{thrPiId}, '%')
+ or thirdId4 LIKE concat('%', #{thrPiId}, '%'))
AND basic_udirel.uuid = #{uuid}
@@ -348,7 +347,7 @@
AND (thirdId ]]> '' or thirdId1 ]]> '' or thirdId2 ]]> '' or
- thirdId3 ]]> '' or thirdId4 ]]> '')
+ thirdId3 ]]> '' or thirdId4 ]]> '')
and basic_products.originUuid ]]> ''
@@ -374,11 +373,9 @@
AND thirdId4 is NULL
and basic_products.originUuid ]]> ''
-
AND basic_udirel.updateTime is NULL
-
AND basic_udirel.lockStatus = #{lockStatus}