insert into face(id, scenic_id, score, member_id, face_url, match_sample_ids, first_match_rate, match_result)
values (#{id}, #{scenicId}, #{score}, #{memberId}, #{faceUrl}, #{matchSampleIds}, #{firstMatchRate}, #{matchResult})
update face
scenic_id = #{scenicId},
member_id = #{memberId},
score = #{score},
face_url = #{faceUrl},
match_sample_ids = #{matchSampleIds},
first_match_rate = #{firstMatchRate},
match_result = #{matchResult},
where id = #{id}
update face set finished_journey = 1 where id = #{id}
update face set is_delete = 1 where id = #{id}
DELETE FROM face where id = #{id}
update face set is_delete = 1 where id in (
#{id}
)
select id, scenic_id, member_id, face_url,score, match_sample_ids, first_match_rate, match_result
from face
is_delete = 0
and member_id = #{memberId}
and scenic_id = #{scenicId}
and match_sample_ids like concat('%', #{matchSampleIds}, '%')
and first_match_rate >= #{startMatchRate}
and first_match_rate <= #{endMatchRate}
and create_at >= #{startTime}
and create_at <= #{endTime}
and update_at >= #{updateStartTime}
and update_at <= #{updateEndTime}
select id, scenic_id, member_id, face_url,score, match_sample_ids, first_match_rate, match_result, create_at, update_at
from face
where id = #{id}
select id, scenic_id, member_id, face_url,score, match_sample_ids, first_match_rate, match_result, create_at, update_at
from face
where member_id = #{userId} and scenic_id = #{scenicId} and is_delete = 0
order by update_at desc
limit 1
select id, scenic_id, member_id, face_url,score, match_sample_ids, first_match_rate, match_result, create_at, update_at
from face
where scenic_id = #{scenicId} and finished_journey != 1 and is_delete = 0
select id, scenic_id, member_id, face_url,score, match_sample_ids, first_match_rate, match_result, create_at, update_at
from face
where member_id = #{userId} and is_delete = 0
order by update_at desc
limit 1
select *
from face
where id = #{id}
select id, face_url, create_at, update_at
from face
where member_id = #{userId} and scenic_id = #{scenicId} and is_delete = 0
order by update_at desc
select id, scenic_id, member_id, face_url,score, match_sample_ids, first_match_rate, match_result, create_at, update_at
from face
where member_id = #{userId} and scenic_id = #{scenicId} and is_delete = 0
order by update_at desc
limit 1
SELECT * FROM `zt`.`face_sample` WHERE `scenic_id` = '3930324797233434624' AND `create_at` < '2025-03-07 14:40:36' AND `device_id` = '3961959104355897344'
SELECT *
FROM `zt`.`face`
WHERE `scenic_id` = #{scenicId}
AND `create_at` < #{endDate}
and `id` not in (select face_id from member_source where is_buy = 1)
and `id` not in (select face_id from member_video where is_buy = 1)