补充全免费逻辑

This commit is contained in:
2025-01-09 14:37:36 +08:00
parent 079f0c4268
commit c27665e513
20 changed files with 148 additions and 89 deletions

View File

@@ -43,11 +43,12 @@
</delete>
<select id="list" resultType="com.ycwl.basic.model.pc.source.resp.SourceRespVO">
select so.id, scenic_id, device_id, url, so.create_time, so.update_time,sc.`name` as scenicName, so.video_url, so.`type`, so.face_sample_id
select so.id, so.scenic_id, de.name as deviceName, device_id, url, so.create_time, so.update_time,sc.`name` as scenicName, so.video_url, so.`type`, so.face_sample_id
from source so
left join scenic sc on sc.id = so.scenic_id
left join device de on de.id = so.device_id
<where>
<if test="scenicId!= null">and scenic_id = #{scenicId} </if>
<if test="scenicId!= null">and so.scenic_id = #{scenicId} </if>
<if test="deviceId!= null">and device_id = #{deviceId} </if>
<if test="url!= null">and url = #{url} </if>
<if test="isBuy!=null">