diff --git a/src/main/resources/mybatis/mapper/basic/UdiRelevanceDao.xml b/src/main/resources/mybatis/mapper/basic/UdiRelevanceDao.xml index 139b9594a..e926fee3c 100644 --- a/src/main/resources/mybatis/mapper/basic/UdiRelevanceDao.xml +++ b/src/main/resources/mybatis/mapper/basic/UdiRelevanceDao.xml @@ -312,17 +312,14 @@ 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 ybbm LIKE concat('%', #{unionCode}, '%') - or sptm LIKE concat('%', #{unionCode}, '%')) - and (thirdId LIKE concat('%', #{thrPiId}, '%') or thirdId1 LIKE concat('%', #{thrPiId}, '%')