select id, task_name, start_time, end_time, repeat_period, inspect_mode, menual_switch, create_by, camera_id, channel, current_step_id, create_time, update_by, update_time, dept_id, user_id, current_stop_start_time from ard_video_inspect_task
insert into ard_video_inspect_task
id,
task_name,
start_time,
end_time,
repeat_period,
inspect_mode,
menual_switch,
create_by,
camera_id,
channel,
current_step_id,
create_time,
update_by,
update_time,
dept_id,
user_id,
current_stop_start_time,
#{id},
#{taskName},
#{startTime},
#{endTime},
#{repeatPeriod},
#{inspectMode},
#{menualSwitch},
#{createBy},
#{cameraId},
#{channel},
#{currentStepId},
#{createTime},
#{updateBy},
#{updateTime},
#{deptId},
#{userId},
#{currentStopStartTime},
update ard_video_inspect_task
task_name = #{taskName},
start_time = #{startTime},
end_time = #{endTime},
repeat_period = #{repeatPeriod},
inspect_mode = #{inspectMode},
menual_switch = #{menualSwitch},
create_by = #{createBy},
camera_id = #{cameraId},
channel = #{channel},
current_step_id = #{currentStepId},
create_time = #{createTime},
update_by = #{updateBy},
update_time = #{updateTime},
dept_id = #{deptId},
user_id = #{userId},
current_stop_start_time = #{currentStopStartTime},
where id = #{id}
delete from ard_video_inspect_task where id = #{id}
delete from ard_video_inspect_task where id in
#{id}
delete from ard_video_inspect_task_step where task_id in
#{taskId}
delete from ard_video_inspect_task_step where task_id = #{taskId}
insert into ard_video_inspect_task_step( id, order_number, recording_time, well_id, task_id, dept_id, user_id) values
( #{item.id}, #{item.orderNumber}, #{item.recordingTime}, #{item.wellId}, #{item.taskId}, #{item.deptId}, #{item.userId})