魏超 5 år sedan
förälder
incheckning
fab01525e2

+ 1
- 1
src/main/resources/mapper/TaShareChildRecordMapper.xml Visa fil

@@ -11,7 +11,7 @@
11 11
 
12 12
     <update id="updateActivityProcessToEndByGroupActivityId">
13 13
       <if test="groupActivityId != null and groupActivityId != ''">
14
-          update ta_share_child_record a set a.status = '2' where a.group_activity_id = #{groupActivityId}
14
+          update ta_share_child_record a set a.status = '2' where a.group_activity_id = #{groupActivityId} and a.status != 0
15 15
       </if>
16 16
     </update>
17 17
 

+ 1
- 1
src/main/resources/mapper/TaShareRecordMapper.xml Visa fil

@@ -11,7 +11,7 @@
11 11
 
12 12
     <update id="updateEndGroupActivityByGroupActivityId">
13 13
         <if test="groupActivityId != '' and groupActivityId != null">
14
-            update ta_share_record a set a.status = '2' where a.group_activity_id = #{groupActivityId}
14
+            update ta_share_record a set a.status = '2' where a.group_activity_id = #{groupActivityId} and a.status != 0
15 15
         </if>
16 16
     </update>
17 17