| | |
| | | <if test="taskName != null and taskName != ''"> and task_name like '%'||#{taskName}||'%'</if> |
| | | <if test="startTime != null and startTime != ''"> and start_time = #{startTime}</if> |
| | | <if test="endTime != null and endTime != ''"> and end_time = #{endTime}</if> |
| | | <if test="repeatPeriod != null and repeatPeriod != ''"> and repeat_period = #{repeatPeriod}</if> |
| | | <if test="inspectMode != null and inspectMode != ''"> and inspect_mode = #{inspectMode}</if> |
| | | <if test="menualSwitch != null and menualSwitch != ''"> and menual_switch = #{menualSwitch}</if> |
| | | <if test="deptId != null and deptId != ''"> and dept_id = #{deptId}</if> |
| | | <if test="userId != null and userId != ''"> and user_id = #{userId}</if> |
| | | </where> |
| | | ORDER BY start_time desc |
| | | </select> |
| | | |
| | | <select id="selectArdVideoInspectTaskById" parameterType="String" resultMap="ArdVideoInspectTaskArdVideoInspectTaskStepResult"> |
| | |
| | | </delete> |
| | | |
| | | <insert id="batchArdVideoInspectTaskStep"> |
| | | insert into ard_video_inspect_task_step( id, order_number, camera_id, recording_time, well_id, task_id, dept_id, user_id) values |
| | | insert into ard_video_inspect_task_step( order_number, camera_id, recording_time, well_id, task_id, dept_id, user_id) values |
| | | <foreach item="item" index="index" collection="list" separator=","> |
| | | ( #{item.id}, #{item.orderNumber}, #{item.cameraId}, #{item.recordingTime}, #{item.wellId}, #{item.taskId}, #{item.deptId}, #{item.userId}) |
| | | ( #{item.orderNumber}, #{item.cameraId}, #{item.recordingTime}, #{item.wellId}, #{item.taskId}, #{item.deptId}, #{item.userId}) |
| | | </foreach> |
| | | </insert> |
| | | </mapper> |