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
|
||||
|
@ -59,6 +59,7 @@ from task
|
||||
<where>
|
||||
<if test="workerId!= null">and worker_id = #{workerId} </if>
|
||||
<if test="memberId!= null">and member_id = #{memberId} </if>
|
||||
<if test="faceId!= null">and face_id = #{faceId} </if>
|
||||
<if test="templateId!= null">and template_id = #{templateId} </if>
|
||||
<if test="scenicId!= null">and scenic_id = #{scenicId} </if>
|
||||
<if test="status!= null">and `status` = #{status} </if>
|
||||
|
@ -92,10 +92,10 @@
|
||||
<select id="getConfig" resultType="com.ycwl.basic.model.pc.template.entity.TemplateConfigEntity">
|
||||
select * from template_config where template_id = #{templateId}
|
||||
</select>
|
||||
<select id="listByScenicId" resultType="com.ycwl.basic.model.pc.template.entity.TemplateEntity">
|
||||
<select id="listEnabledByScenicId" resultType="com.ycwl.basic.model.pc.template.entity.TemplateEntity">
|
||||
select *
|
||||
from template
|
||||
where scenic_id = #{scenicId} and pid = 0
|
||||
where scenic_id = #{scenicId} and pid = 0 and status = 1
|
||||
</select>
|
||||
<select id="listFor" resultType="com.ycwl.basic.model.mobile.scenic.content.ContentPageVO">
|
||||
select t.id templateId, t.scenic_id, s.name as scenic_name, t.`name`, pid, t.cover_url templateCoverUrl,
|
||||
|
@ -46,6 +46,7 @@
|
||||
)
|
||||
</if>
|
||||
</where>
|
||||
order by v.create_time desc
|
||||
</select>
|
||||
<select id="getById" resultType="com.ycwl.basic.model.pc.video.resp.VideoRespVO">
|
||||
select v.id, v.scenic_id, member_id, template_id, task_id, worker_id, video_url, v.create_time, v.update_time,
|
||||
|
Reference in New Issue
Block a user