select plan_maint_id, plan_maint_code, maint_level, maint_group, maint_supervisor, maint_time,job_id,time_limit, cycle_period, maint_status, create_method, is_flag, remark, create_by, create_time, update_by, update_time from dms_plan_maint insert into dms_plan_maint plan_maint_code, maint_level, maint_group, maint_supervisor, maint_time, time_limit, job_id, cycle_period, maint_status, create_method, is_flag, remark, create_by, create_time, update_by, update_time, #{planMaintCode}, #{maintLevel}, #{maintGroup}, #{maintSupervisor}, #{maintTime}, #{timeLimit}, #{jobId}, #{cyclePeriod}, #{maintStatus}, #{createMethod}, #{isFlag}, #{remark}, #{createBy}, #{createTime}, #{updateBy}, #{updateTime}, update dms_plan_maint plan_maint_code = #{planMaintCode}, maint_level = #{maintLevel}, maint_group = #{maintGroup}, maint_supervisor = #{maintSupervisor}, maint_time = #{maintTime}, time_limit = #{timeLimit}, job_id = #{jobId}, cycle_period = #{cyclePeriod}, maint_status = #{maintStatus}, create_method = #{createMethod}, is_flag = #{isFlag}, remark = #{remark}, create_by = #{createBy}, create_time = #{createTime}, update_by = #{updateBy}, update_time = #{updateTime}, where plan_maint_id = #{planMaintId} delete from dms_plan_maint where plan_maint_id = #{planMaintId} delete from dms_plan_maint where plan_maint_id in #{planMaintId} delete from dms_plan_maint_detail where plan_maint_id in #{planMaintId} delete from dms_plan_maint_detail where plan_maint_id = #{planMaintId} insert into dms_plan_maint_detail( plan_maint_detail_id, plan_maint_id, device_id, maint_station_id, maint_protocol, operation_description, is_flag, remark, create_by, create_time, update_by, update_time) values ( #{item.planMaintDetailId}, #{item.planMaintId}, #{item.deviceId}, #{item.maintStationId}, #{item.maintProtocol}, #{item.operationDescription}, #{item.isFlag}, #{item.remark}, #{item.createBy}, #{item.createTime}, #{item.updateBy}, #{item.updateTime})