From 13716d87a6579ea8be6d76beb89f873d51d35a89 Mon Sep 17 00:00:00 2001
From: xiejun <xj@2023>
Date: 星期三, 31 五月 2023 17:19:20 +0800
Subject: [PATCH] 将集团分类树查询待属性集合分开分别查询集团分类树,模型属性
---
Source/UBCS/ubcs-service/ubcs-code/src/main/resources/mapper/CommonsMapper.xml | 25 ++++++++++++++++++++++++-
1 files changed, 24 insertions(+), 1 deletions(-)
diff --git a/Source/UBCS/ubcs-service/ubcs-code/src/main/resources/mapper/CommonsMapper.xml b/Source/UBCS/ubcs-service/ubcs-code/src/main/resources/mapper/CommonsMapper.xml
index 736ff64..7aee99d 100644
--- a/Source/UBCS/ubcs-service/ubcs-code/src/main/resources/mapper/CommonsMapper.xml
+++ b/Source/UBCS/ubcs-service/ubcs-code/src/main/resources/mapper/CommonsMapper.xml
@@ -6,7 +6,7 @@
<select id="selectByCount" resultType="java.util.Map">
select COUNT(w.OID) count
from ${tableName} w
- join PL_CODE_ALLCODE c on w.OID = c.CREATECODEOID
+ join PL_CODE_ALLCODE c on w.OID = c.CREATECODEOID
where c.CREATECODEBTM = #{btm}
and c.CODERULEOID = #{oid}
and w.LASTR = '1'
@@ -14,4 +14,27 @@
</select>
+ <select id="selectById" resultType="java.lang.String">
+ ${inSql}
+ </select>
+
+ <select id="selectBySql" resultType="java.util.Map">
+ ${inSql}
+ </select>
+
+ <insert id="insertByBaseModel" parameterType="java.util.Map">
+ insert into ${tableName}
+ (
+ <foreach collection="columnMap" item="value" index="key" separator=",">
+ ${key}
+ </foreach>
+ )
+ <foreach collection="mapList" item="columnMap" separator=" union all ">
+ select <foreach collection="columnMap" item="value" index="key" separator=",">
+ #{value}
+ </foreach>
+ from dual
+ </foreach>
+ </insert>
+
</mapper>
--
Gitblit v1.9.3