From 69066c59f899aaa035492b712045d66df65d39bb Mon Sep 17 00:00:00 2001
From: yuxc <653031404@qq.com>
Date: 星期五, 25 八月 2023 14:57:08 +0800
Subject: [PATCH] 处理basemodel,bean里面遇到字段相同且map里面数据为空,则使用bean里面的值

---
 Source/UBCS/ubcs-service/ubcs-omd/src/main/resources/mapper/AttributeMapper.xml |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/Source/UBCS/ubcs-service/ubcs-omd/src/main/resources/mapper/AttributeMapper.xml b/Source/UBCS/ubcs-service/ubcs-omd/src/main/resources/mapper/AttributeMapper.xml
index 15d3763..6aaa387 100644
--- a/Source/UBCS/ubcs-service/ubcs-omd/src/main/resources/mapper/AttributeMapper.xml
+++ b/Source/UBCS/ubcs-service/ubcs-omd/src/main/resources/mapper/AttributeMapper.xml
@@ -58,4 +58,12 @@
         where attr.oid = #{oid}
     </select>
 
+    <select id="checkIdExist" resultType="java.lang.Long">
+        select COUNT(*) FROM
+        <include refid="tableName"/>
+        where LOWER(ID) = #{id}
+        <if test="oid != null">
+            and OID != #{oid}
+        </if>
+    </select>
 </mapper>

--
Gitblit v1.10.0