From 039f227d1f2998c0e0e5cd5d73d343ad57b88145 Mon Sep 17 00:00:00 2001
From: xiejun <xj@2023>
Date: 星期三, 31 五月 2023 10:42:14 +0800
Subject: [PATCH] 添加主数据分类及其属性为集团集成用

---
 Source/UBCS/ubcs-service/ubcs-code/src/main/resources/mapper/CommonsMapper.xml |   18 ++++++++++++++++++
 1 files changed, 18 insertions(+), 0 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 34a7318..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
@@ -18,5 +18,23 @@
         ${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.10.0