zhangjian
2023-06-03 845956ecf4749c2d6c278bdc9638efb934a63419
ard-work/src/main/resources/mapper/inspect/ArdVideoInspectTaskMapper.xml
@@ -47,6 +47,7 @@
        <where>  
            <if test="taskName != null  and taskName != ''"> and task_name like '%'||#{taskName}||'%'</if>
            <if test="inspectMode != null  and inspectMode != ''"> and inspect_mode = #{inspectMode}</if>
            <if test="menualSwitch != null and inspectMode != ''">and menual_switch= #{menualSwitch}</if>
            <if test="cameraId != null  and cameraId != ''"> and camera_id = #{cameraId}</if>
            <if test="channel != null "> and channel = #{channel}</if>
        </where>
@@ -154,4 +155,11 @@
            ( #{item.taskId}, #{item.deptId}, #{item.userId},  #{item.orderNumber}, #{item.recordingTime}, #{item.wellId})
        </foreach>
    </insert>
    <!--查询任务中相机已使用时段-->
    <select id="getTaskUsedCameraPeriods" parameterType="String" resultType="java.util.HashMap">
        select t.start_time,t.end_time from ard_video_inspect_task t
        where t.camera_id=#{startMonth}
        ORDER BY t.start_time
    </select>
</mapper>