From ce4a770744d7a0b4e4ea3b5101556b94e72bdf1c Mon Sep 17 00:00:00 2001
From: lidongdong <1459917685@qq.com>
Date: 星期二, 14 十一月 2023 17:49:20 +0800
Subject: [PATCH] 修改打卡

---
 springcloud_k8s_panzhihuazhihuishequ/service_partybuilding/src/main/resources/mapper/NeedProblemClaimMapper.xml |   14 ++++++++++++--
 1 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_partybuilding/src/main/resources/mapper/NeedProblemClaimMapper.xml b/springcloud_k8s_panzhihuazhihuishequ/service_partybuilding/src/main/resources/mapper/NeedProblemClaimMapper.xml
index 5793ca4..5aeb16c 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/service_partybuilding/src/main/resources/mapper/NeedProblemClaimMapper.xml
+++ b/springcloud_k8s_panzhihuazhihuishequ/service_partybuilding/src/main/resources/mapper/NeedProblemClaimMapper.xml
@@ -187,10 +187,20 @@
             <if test="item.unitId !=null and item.unitId != '' ">
                 unit_id=#{item.unitId},
             </if>
-
             update_time=sysdate()
         </set>
-        where id = #{item.id}
+        <where>
+            1=1
+            <if test="item.id!=null and item.id != '' ">
+                and id = #{item.id}
+            </if>
+            <if test="item.userId !=null and item.userId != '' ">
+                and user_id=#{item.userId}
+            </if>
+            <if test="item.taskId !=null and item.taskId != '' ">
+                and task_id=#{item.taskId}
+            </if>
+        </where>
     </update>
 
     <delete id="expurgateData" parameterType="String">

--
Gitblit v1.7.1