From 65e656734b7a701b70b1dc09ca00a8930116a25e Mon Sep 17 00:00:00 2001
From: ludc
Date: 星期二, 31 十月 2023 23:03:56 +0800
Subject: [PATCH] 前端代码打包
---
Source/UBCS/ubcs-service/ubcs-code/src/main/resources/mapper/CommonsMapper.xml | 47 ++++++++++++++++++++++++++++++++++++++++++++++-
1 files changed, 46 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 7aee99d..eb6db99 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
@@ -13,12 +13,23 @@
and w.LASTV = '1'
</select>
-
<select id="selectById" resultType="java.lang.String">
${inSql}
</select>
<select id="selectBySql" resultType="java.util.Map">
+ ${inSql}
+ </select>
+
+ <select id="queryCountBySql" resultType="java.lang.Integer">
+ ${inSql}
+ </select>
+
+ <select id="queryCountStringBySql" resultType="java.lang.String">
+ ${inSql}
+ </select>
+
+ <select id="queryByOnlySqlForMap" resultType="java.util.Map">
${inSql}
</select>
@@ -37,4 +48,38 @@
</foreach>
</insert>
+ <insert id="deleteByTaleAndOid" >
+ delete from ${tableName} where oid in (${oids})
+ </insert>
+
+<!-- <update id="updateByTaleAndOid">-->
+<!-- update ${tableName}-->
+<!-- set lcStatus = #{lcStatus}-->
+<!-- where oid = (${oids})-->
+<!-- </update>-->
+
+
+ <update id="updateBatchByBaseModel" parameterType="java.util.List" >
+ BEGIN
+ <foreach collection="mapList" item="columnMap" index="index" separator=";">
+ update ${tableName}
+ <set>
+ <foreach collection="columnMap" item="value" index="key" separator=",">
+ ${key} = #{value}
+ </foreach>
+ </set>
+ where oid = #{columnMap.oid}
+ </foreach>;
+ END;
+ </update >
+
+ <select id="getNextRevision" resultType="map" >
+ select max(revisionSeq) + 1 revisionSeq,
+ max(RevisionValue) + 1 revisionVal,
+ max(VersionSeq) + 1 VersionSeq,
+ max(VersionValue) + 1 VersionVal
+ from ${tableName}
+ where nameoid = #{nameoid}
+ </select>
+
</mapper>
--
Gitblit v1.9.3