人脸真实删除、清理逻辑优化

This commit is contained in:
2025-05-08 17:21:00 +08:00
parent ef978529ac
commit 2e92cf5c91
3 changed files with 16 additions and 5 deletions

View File

@ -32,6 +32,9 @@
<delete id="deleteById">
update face set is_delete = 1 where id = #{id}
</delete>
<delete id="forceDeleteById">
DELETE FROM face where id = #{id}
</delete>
<delete id="deleteByIds">
<if test="list!= null and list.size() > 0">
update face set is_delete = 1 where id in (
@ -121,6 +124,6 @@
SELECT * FROM `zt`.`face_sample` WHERE `scenic_id` = '3930324797233434624' AND `create_at` &lt; '2025-03-07 14:40:36' AND `device_id` = '3961959104355897344'
</select>
<select id="listEntityBeforeDate" resultType="com.ycwl.basic.model.pc.face.entity.FaceEntity">
SELECT * FROM `zt`.`face` WHERE `scenic_id` = #{scenicId} AND `create_at` &lt; #{date}
SELECT * FROM `zt`.`face` WHERE `scenic_id` = #{scenicId} AND `create_at` &lt; #{endDate}
</select>
</mapper>