select flow_checkplan_id, check_code, plan_time, check_by, device_type_id, check_amount, surplus_check_amount, check_state, remark, create_by, create_time, update_by, update_time from dms_flow_checkplan
insert into dms_flow_checkplan
check_code,
plan_time,
check_by,
device_type_id,
check_amount,
surplus_check_amount,
check_state,
remark,
create_by,
create_time,
update_by,
update_time,
#{checkCode},
#{planTime},
#{checkBy},
#{deviceTypeId},
#{checkAmount},
#{surplusCheckAmount},
#{checkState},
#{remark},
#{createBy},
#{createTime},
#{updateBy},
#{updateTime},
update dms_flow_checkplan
check_code = #{checkCode},
plan_time = #{planTime},
check_by = #{checkBy},
device_type_id = #{deviceTypeId},
check_amount = #{checkAmount},
surplus_check_amount = #{surplusCheckAmount},
check_state = #{checkState},
remark = #{remark},
create_by = #{createBy},
create_time = #{createTime},
update_by = #{updateBy},
update_time = #{updateTime},
where flow_checkplan_id = #{flowCheckplanId}
delete from dms_flow_checkplan where flow_checkplan_id = #{flowCheckplanId}
delete from dms_flow_checkplan where flow_checkplan_id in
#{flowCheckplanId}
delete from dms_flow_checkplan_detail where flow_checkplan_id in
#{flowCheckplanId}
delete from dms_flow_checkplan_detail where flow_checkplan_id = #{flowCheckplanId}
insert into dms_flow_checkplan_detail( checkplan_detail_id, flow_checkplan_id, device_id, check_time, variation_flag, skip_cause, check_person, last_check_time) values
( #{item.checkplanDetailId}, #{item.flowCheckplanId}, #{item.deviceId}, #{item.checkTime}, #{item.variationFlag}, #{item.skipCause}, #{item.checkPerson}, #{item.lastCheckTime})