不要删除人脸样本还有的素材

This commit is contained in:
2025-06-02 09:42:15 +08:00
parent a4a6e9b5af
commit 26a9be80f6

View File

@ -60,7 +60,7 @@
where member_id = #{userId} and face_id = #{faceId} and is_buy = 0 where member_id = #{userId} and face_id = #{faceId} and is_buy = 0
</delete> </delete>
<delete id="deleteUselessSource"> <delete id="deleteUselessSource">
delete from source where id not in (select source_id from member_source where source_id is not null) delete from source where id not in (select source_id from member_source) and face_sample_id not in (select id from face_sample)
</delete> </delete>
<select id="list" resultType="com.ycwl.basic.model.pc.source.resp.SourceRespVO"> <select id="list" resultType="com.ycwl.basic.model.pc.source.resp.SourceRespVO">