From 982568f600d8810cfa012a8e45aee1af58a7ccaf Mon Sep 17 00:00:00 2001 From: wangwei <1610949092@qq.com> Date: Mon, 20 Feb 2023 14:05:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mybatis/mapper/basic/UdiRelevanceDao.xml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) 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}, '%')