From d7d9b601b2e4fdb663375993e2cfbdbd363df421 Mon Sep 17 00:00:00 2001
From: Your Name <you@example.com>
Date: 星期二, 11 七月 2023 22:17:37 +0800
Subject: [PATCH] Merge branch 'master' of http://git.homecommunity.cn/supervip/MicroCommunity

---
 java110-db/src/main/resources/mapper/common/ItemReleaseResV1ServiceDaoImplMapper.xml |  145 ++++++++++++++++++++++++++----------------------
 1 files changed, 78 insertions(+), 67 deletions(-)

diff --git a/java110-db/src/main/resources/mapper/common/ItemReleaseResV1ServiceDaoImplMapper.xml b/java110-db/src/main/resources/mapper/common/ItemReleaseResV1ServiceDaoImplMapper.xml
index acc130d..52d1c4a 100644
--- a/java110-db/src/main/resources/mapper/common/ItemReleaseResV1ServiceDaoImplMapper.xml
+++ b/java110-db/src/main/resources/mapper/common/ItemReleaseResV1ServiceDaoImplMapper.xml
@@ -5,93 +5,104 @@
 <mapper namespace="itemReleaseResV1ServiceDaoImpl">
 
 
-
-
-
     <!-- 淇濆瓨鏀捐鐗╁搧淇℃伅 add by wuxw 2018-07-03 -->
     <insert id="saveItemReleaseResInfo" parameterType="Map">
         insert into item_release_res(
-res_name,ir_id,community_id,res_id
-) values (
-#{resName},#{irId},#{communityId},#{resId}
-)
+        res_name,ir_id,community_id,res_id,amount
+        ) values (
+        #{resName},#{irId},#{communityId},#{resId},#{amount}
+        )
+    </insert>
+
+    <insert id="saveItemReleaseResesInfo" parameterType="Map">
+        insert into item_release_res(
+        res_name,ir_id,community_id,res_id,amount
+        ) values
+        <foreach collection="itemReleaseResPos" item="item" separator=",">
+            (#{item.resName},#{item.irId},#{item.communityId},#{item.resId},#{item.amount})
+        </foreach>
+
     </insert>
 
 
 
     <!-- 鏌ヨ鏀捐鐗╁搧淇℃伅 add by wuxw 2018-07-03 -->
     <select id="getItemReleaseResInfo" parameterType="Map" resultType="Map">
-        select  t.res_name,t.res_name resName,t.ir_id,t.ir_id irId,t.status_cd,t.status_cd statusCd,t.community_id,t.community_id communityId,t.res_id,t.res_id resId 
-from item_release_res t 
-where 1 =1 
-<if test="resName !=null and resName != ''">
-   and t.res_name= #{resName}
-</if> 
-<if test="irId !=null and irId != ''">
-   and t.ir_id= #{irId}
-</if> 
-<if test="statusCd !=null and statusCd != ''">
-   and t.status_cd= #{statusCd}
-</if> 
-<if test="communityId !=null and communityId != ''">
-   and t.community_id= #{communityId}
-</if> 
-<if test="resId !=null and resId != ''">
-   and t.res_id= #{resId}
-</if> 
-order by t.create_time desc
-<if test="page != -1 and page != null ">
-   limit #{page}, #{row}
-</if> 
+        select t.res_name,t.res_name resName,t.ir_id,t.ir_id irId,t.status_cd,t.status_cd
+        statusCd,t.community_id,t.community_id communityId,t.res_id,t.res_id resId,t.amount
+        from item_release_res t
+        where 1 =1
+        <if test="resName !=null and resName != ''">
+            and t.res_name= #{resName}
+        </if>
+        <if test="irId !=null and irId != ''">
+            and t.ir_id= #{irId}
+        </if>
+        <if test="statusCd !=null and statusCd != ''">
+            and t.status_cd= #{statusCd}
+        </if>
+        <if test="communityId !=null and communityId != ''">
+            and t.community_id= #{communityId}
+        </if>
+        <if test="resId !=null and resId != ''">
+            and t.res_id= #{resId}
+        </if>
+        order by t.create_time desc
+        <if test="page != -1 and page != null ">
+            limit #{page}, #{row}
+        </if>
 
     </select>
 
 
-
-
     <!-- 淇敼鏀捐鐗╁搧淇℃伅 add by wuxw 2018-07-03 -->
     <update id="updateItemReleaseResInfo" parameterType="Map">
-        update  item_release_res t set t.status_cd = #{statusCd}
-<if test="newBId != null and newBId != ''">
-,t.b_id = #{newBId}
-</if> 
-<if test="resName !=null and resName != ''">
-, t.res_name= #{resName}
-</if> 
-<if test="irId !=null and irId != ''">
-, t.ir_id= #{irId}
-</if> 
-<if test="communityId !=null and communityId != ''">
-, t.community_id= #{communityId}
-</if> 
- where 1=1 <if test="resId !=null and resId != ''">
-and t.res_id= #{resId}
-</if> 
+        update item_release_res t set t.status_cd = #{statusCd}
+        <if test="newBId != null and newBId != ''">
+            ,t.b_id = #{newBId}
+        </if>
+        <if test="resName !=null and resName != ''">
+            , t.res_name= #{resName}
+        </if>
+        <if test="amount !=null and amount != ''">
+            , t.amount= #{amount}
+        </if>
+
+        where 1=1
+        <if test="resId !=null and resId != ''">
+            and t.res_id= #{resId}
+        </if>
+        <if test="irId !=null and irId != ''">
+            and t.ir_id= #{irId}
+        </if>
+        <if test="communityId !=null and communityId != ''">
+            and t.community_id= #{communityId}
+        </if>
 
     </update>
 
     <!-- 鏌ヨ鏀捐鐗╁搧鏁伴噺 add by wuxw 2018-07-03 -->
-     <select id="queryItemReleaseRessCount" parameterType="Map" resultType="Map">
-        select  count(1) count 
-from item_release_res t 
-where 1 =1 
-<if test="resName !=null and resName != ''">
-   and t.res_name= #{resName}
-</if> 
-<if test="irId !=null and irId != ''">
-   and t.ir_id= #{irId}
-</if> 
-<if test="statusCd !=null and statusCd != ''">
-   and t.status_cd= #{statusCd}
-</if> 
-<if test="communityId !=null and communityId != ''">
-   and t.community_id= #{communityId}
-</if> 
-<if test="resId !=null and resId != ''">
-   and t.res_id= #{resId}
-</if> 
+    <select id="queryItemReleaseRessCount" parameterType="Map" resultType="Map">
+        select count(1) count
+        from item_release_res t
+        where 1 =1
+        <if test="resName !=null and resName != ''">
+            and t.res_name= #{resName}
+        </if>
+        <if test="irId !=null and irId != ''">
+            and t.ir_id= #{irId}
+        </if>
+        <if test="statusCd !=null and statusCd != ''">
+            and t.status_cd= #{statusCd}
+        </if>
+        <if test="communityId !=null and communityId != ''">
+            and t.community_id= #{communityId}
+        </if>
+        <if test="resId !=null and resId != ''">
+            and t.res_id= #{resId}
+        </if>
 
 
-     </select>
+    </select>
 
 </mapper>

--
Gitblit v1.8.0