You've already forked FrameTour-BE
逻辑修改
This commit is contained in:
@@ -52,37 +52,34 @@
|
||||
</if>
|
||||
</delete>
|
||||
<select id="list" resultType="com.ycwl.basic.model.pc.faceSample.resp.FaceSampleRespVO">
|
||||
select id, scenic_id, device_id, face_url, source_id, match_sample_ids, first_match_rate, match_result,`status`
|
||||
from face_sample
|
||||
select f.id, f.scenic_id, s.name scenicName, device_id, d.name deviceName, face_url, source_id, f.score, match_sample_ids, first_match_rate, match_result, f.`status`, f.create_at
|
||||
from face_sample f
|
||||
left join scenic s on s.id = f.scenic_id
|
||||
left join device d on d.id = f.device_id
|
||||
<where>
|
||||
<if test="scenicId!= null and scenicId!= ''">
|
||||
and scenic_id = #{scenicId}
|
||||
and f.scenic_id = #{scenicId}
|
||||
</if>
|
||||
<if test="deviceId!= null and deviceId!= ''">
|
||||
and device_id = #{deviceId}
|
||||
</if>
|
||||
<if test="source_id!= null and source_id!= ''">
|
||||
and source_id = #{source_id}
|
||||
<if test="sourceId!= null and sourceId!= ''">
|
||||
and source_id = #{sourceId}
|
||||
</if>
|
||||
<if test="matchSampleIds!= null and matchSampleIds!= ''">
|
||||
and match_sample_ids like concat('%', #{matchSampleIds}, '%')
|
||||
</if>
|
||||
<if test="startMatchRate!= null ">
|
||||
and first_match_rate >= #{startMatchRate}
|
||||
</if>
|
||||
<if test="endMatchRate!= null ">
|
||||
and first_match_rate <= #{endMatchRate}
|
||||
</if>
|
||||
<if test="startTime!=null">
|
||||
and create_at >= #{startTime}
|
||||
and f.create_at >= #{startTime}
|
||||
</if>
|
||||
<if test="endTime!=null">
|
||||
and create_at <= #{endTime}
|
||||
and f.create_at <= #{endTime}
|
||||
</if>
|
||||
<if test="status!= null ">
|
||||
and `status` = #{status}
|
||||
and f.`status` = #{status}
|
||||
</if>
|
||||
</where>
|
||||
ORDER BY f.create_at desc
|
||||
</select>
|
||||
<select id="getById" resultType="com.ycwl.basic.model.pc.faceSample.resp.FaceSampleRespVO">
|
||||
select id, scenic_id, device_id, face_url, match_sample_ids, first_match_rate, source_id, match_result,`status`, create_at
|
||||
|
Reference in New Issue
Block a user