wangxx 1 месяц назад
Родитель
Сommit
ef32ce71c9

+ 2 - 1
airport-blocked/src/main/resources/mapper/blocked/BlockedLuggageStatisticsDailyMapper.xml

@@ -213,7 +213,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
213
     </update>
213
     </update>
214
 
214
 
215
     <delete id="deleteBlockedLuggageStatisticsDailyById" parameterType="Long">
215
     <delete id="deleteBlockedLuggageStatisticsDailyById" parameterType="Long">
216
-        update blocked_luggage_statistics_daily set del_flag = '2' where id = #{id}
216
+        update blocked_luggage_statistics_daily set del_flag = '2' where id = #{id} and del_flag = '0'
217
     </delete>
217
     </delete>
218
 
218
 
219
     <delete id="deleteBlockedLuggageStatisticsDailyByIds" parameterType="String">
219
     <delete id="deleteBlockedLuggageStatisticsDailyByIds" parameterType="String">
@@ -221,5 +221,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
221
         <foreach item="id" collection="array" open="(" separator="," close=")">
221
         <foreach item="id" collection="array" open="(" separator="," close=")">
222
             #{id}
222
             #{id}
223
         </foreach>
223
         </foreach>
224
+        and del_flag = '0'
224
     </delete>
225
     </delete>
225
 </mapper>
226
 </mapper>