From 695e4a085727ef5017597dd1ab72a47d0e9883e6 Mon Sep 17 00:00:00 2001 From: ludc Date: 星期二, 30 五月 2023 19:19:55 +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