From b3865c42e78dd87a7ff00404089ad78996629b4e Mon Sep 17 00:00:00 2001
From: Your Name <you@example.com>
Date: 星期二, 06 十二月 2022 02:38:17 +0800
Subject: [PATCH] 优化代码

---
 java110-db/src/main/resources/mapper/store/PurchaseApplyServiceDaoImplMapper.xml |   32 ++++++++++++++++++++++++++++++++
 1 files changed, 32 insertions(+), 0 deletions(-)

diff --git a/java110-db/src/main/resources/mapper/store/PurchaseApplyServiceDaoImplMapper.xml b/java110-db/src/main/resources/mapper/store/PurchaseApplyServiceDaoImplMapper.xml
index 519341e..5ebf526 100755
--- a/java110-db/src/main/resources/mapper/store/PurchaseApplyServiceDaoImplMapper.xml
+++ b/java110-db/src/main/resources/mapper/store/PurchaseApplyServiceDaoImplMapper.xml
@@ -413,6 +413,16 @@
         <if test="applyOrderId !=null and applyOrderId != ''">
             and t.apply_order_id= #{applyOrderId}
         </if>
+        <if test="applyOrderIds !=null ">
+            and t.apply_order_id in
+            <foreach open="(" close=")"
+                     separator="," collection="applyOrderIds" item="item">
+                #{item}
+            </foreach>
+        </if>
+        <if test="userName !=null and userName != ''">
+            and t.user_name like concat('%',#{userName},'%')
+        </if>
         <if test="statusCd !=null and statusCd != ''">
             and t.status_cd= #{statusCd}
         </if>
@@ -471,4 +481,26 @@
             and ahp.BUSINESS_KEY_ = #{businessKey}
         </if>
     </select>
+
+    <!--鑾峰緱鑾峰彇娴佺▼浠诲姟id-->
+    <select id="getActRuTaskId" parameterType="Map" resultType="Map">
+        SELECT art.ID_ actRuTaskId FROM act_ru_execution are
+        LEFT JOIN act_ru_task art ON are.PROC_INST_ID_=art.PROC_INST_ID_
+        where 1 = 1
+        <if test="businessKey !=null and businessKey != ''">
+            and are.BUSINESS_KEY_ = #{businessKey}
+        </if>
+    </select>
+
+    <!-- 淇敼娴佺▼浠诲姟淇℃伅 -->
+    <update id="updateActRuTaskById" parameterType="Map">
+        update act_ru_task t set SUSPENSION_STATE_=1
+        <if test="assigneeUser != null and assigneeUser != ''">
+            ,t.ASSIGNEE_ = #{assigneeUser}
+        </if>
+        where 1=1
+        <if test="actRuTaskId !=null and actRuTaskId != ''">
+            and t.ID_= #{actRuTaskId}
+        </if>
+    </update>
 </mapper>

--
Gitblit v1.8.0