From d5afa86ad01fb8da3ad71d10d3a45f934f629338 Mon Sep 17 00:00:00 2001
From: wangwei <1610949092@qq.com>
Date: Mon, 27 Feb 2023 16:30:04 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=93=8D=E4=BD=9C=E6=97=A5?=
=?UTF-8?q?=E5=BF=97bug?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../mybatis/mapper/basic/UdiRelevanceDao.xml | 24 ++++++++++++-------
1 file changed, 15 insertions(+), 9 deletions(-)
diff --git a/src/main/resources/mybatis/mapper/basic/UdiRelevanceDao.xml b/src/main/resources/mybatis/mapper/basic/UdiRelevanceDao.xml
index e926fee3c..e6be3b5c1 100644
--- a/src/main/resources/mybatis/mapper/basic/UdiRelevanceDao.xml
+++ b/src/main/resources/mybatis/mapper/basic/UdiRelevanceDao.xml
@@ -312,20 +312,24 @@
AND ggxh LIKE concat('%', #{ggxh}, '%')
- and (
- nameCode LIKE concat('%', #{nameCode}, '%')
- or ybbm LIKE concat('%', #{nameCode}, '%')
- or sptm LIKE concat('%', #{nameCode}, '%'))
+ AND nameCode 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}
@@ -344,7 +348,7 @@
AND (thirdId ]]> '' or thirdId1 ]]> '' or thirdId2 ]]> '' or
- thirdId3 ]]> '' or thirdId4 ]]> '')
+ thirdId3 ]]> '' or thirdId4 ]]> '')
and basic_products.originUuid ]]> ''
@@ -370,9 +374,11 @@
AND thirdId4 is NULL
and basic_products.originUuid ]]> ''
+
AND basic_udirel.updateTime is NULL
+
AND basic_udirel.lockStatus = #{lockStatus}