This commit is contained in:
2025-01-13 10:26:18 +08:00
parent 9c1d979bd8
commit 02548a3028
33 changed files with 399 additions and 222 deletions

View File

@ -96,6 +96,7 @@
select *
from device_config
where device_id = #{deviceId}
limit 1
</select>
<select id="getByDeviceId" resultType="com.ycwl.basic.model.pc.device.entity.DeviceEntity">
select *

View File

@ -94,5 +94,6 @@
#{id}
</foreach>
)
order by create_at desc
</select>
</mapper>

View File

@ -4,6 +4,6 @@
<select id="listByMpId" resultType="com.ycwl.basic.model.pc.mp.MpNotifyConfigEntity">
select *
from mp_notify_config
where mp_id = #{mpId}
where mp_id = #{mpId} and status = 1
</select>
</mapper>

View File

@ -163,4 +163,11 @@
where ms.face_id = #{faceId} and ms.type = 1
order by create_time desc
</select>
<select id="listVideoByScenicFaceRelation" resultType="com.ycwl.basic.model.pc.source.entity.SourceEntity">
select s.*
from member_source ms
left join source s on ms.source_id = s.id
where ms.face_id = #{faceId} and ms.type = 1 and ms.scenic_id = #{scenicId}
order by create_time desc
</select>
</mapper>

View File

@ -55,7 +55,7 @@
</delete>
<select id="list" resultType="com.ycwl.basic.model.pc.task.resp.TaskRespVO">
select id, worker_id, face_id, member_id, template_id, scenic_id, task_params, video_url, `status`, result, create_time, update_time, start_time, end_time
from task
from task
<where>
<if test="workerId!= null">and worker_id = #{workerId} </if>
<if test="memberId!= null">and member_id = #{memberId} </if>

View File

@ -110,4 +110,9 @@
from template t
where t.scenic_id = #{scenicId} and t.pid = 0 and t.status = 1
</select>
<select id="get" resultType="com.ycwl.basic.model.pc.template.entity.TemplateEntity">
select *
from template
where id = #{id}
</select>
</mapper>