清理删除逻辑优化

This commit is contained in:
2025-05-28 10:34:18 +08:00
parent 06a07514cc
commit a41b87713f
5 changed files with 17 additions and 1 deletions

View File

@ -61,6 +61,12 @@
delete from member_video
where member_id = #{userId} and face_id = #{faceId} and is_buy = 0
</delete>
<delete id="deleteUselessVideo">
delete from video
where id not in (
select video_id from member_video where video_id is not null
)
</delete>
<select id="list" resultType="com.ycwl.basic.model.pc.video.resp.VideoRespVO">
select v.id, v.scenic_id, template_id, task_id, worker_id, video_url, v.create_time, v.update_time,
s.name scenicName, s.latitude, s.longitude, t.name templateName, t.price templatePrice,t.cover_url templateCoverUrl