部分逻辑修改

This commit is contained in:
2024-12-16 16:23:09 +08:00
parent 37e6f29a33
commit dab3f4356f
14 changed files with 72 additions and 18 deletions

View File

@ -91,6 +91,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>
@ -98,4 +99,10 @@ from task
<if test="endTime!= null">and create_time &lt;= #{endTime} </if>
</where>
</select>
<select id="getFaceAutomaticTask" resultType="com.ycwl.basic.model.pc.task.entity.TaskEntity">
select *
from task
where face_id = #{faceId} and automatic = 1
limit 1
</select>
</mapper>

View File

@ -40,6 +40,11 @@
</if>
<if test="startTime!= null">and v.create_time &gt;= #{startTime} </if>
<if test="endTime!= null">and v.create_time &lt;= #{endTime} </if>
<if test="faceId!= null">
and v.task_id in (
select id from task where face_id = #{faceId}
)
</if>
</where>
</select>
<select id="getById" resultType="com.ycwl.basic.model.pc.video.resp.VideoRespVO">