insert into special_work_appointment(apply_dep_id, apply_dep_name, appointment_time, status, hot_work, ground_breaking_oper, blind_plate_plugging_oper, temporary_power_oper, work_at_height, open_circuit_oper, lifting_oper, confined_space_oper, create_uid, gmt_create, gmt_modified, create_uname, modified_uname, modified_uid) values (#{applyDepId}, #{applyDepName}, #{appointmentTime}, #{status}, #{hotWork}, #{groundBreakingOper}, #{blindPlatePluggingOper}, #{temporaryPowerOper}, #{workAtHeight}, #{openCircuitOper}, #{liftingOper}, #{confinedSpaceOper}, #{createUid}, #{gmtCreate}, #{gmtModified}, #{createUname}, #{modifiedUname}, #{modifiedUid}) insert into special_work_appointment(apply_dep_id, apply_dep_name, appointment_time, status, hot_work, ground_breaking_oper, blind_plate_plugging_oper, temporary_power_oper, work_at_height, open_circuit_oper, lifting_oper, confined_space_oper, create_uid, gmt_create, gmt_modified, create_uname, modified_uname, modified_uid) values (#{entity.applyDepId}, #{entity.applyDepName}, #{entity.appointmentTime}, #{entity.status}, #{entity.hotWork}, #{entity.groundBreakingOper}, #{entity.blindPlatePluggingOper}, #{entity.temporaryPowerOper}, #{entity.workAtHeight}, #{entity.openCircuitOper}, #{entity.liftingOper}, #{entity.confinedSpaceOper}, #{entity.createUid}, #{entity.gmtCreate}, #{entity.gmtModified}, #{entity.createUname}, #{entity.modifiedUname}, #{entity.modifiedUid}) insert into special_work_appointment(apply_dep_id, apply_dep_name, appointment_time, status, hot_work, ground_breaking_oper, blind_plate_plugging_oper, temporary_power_oper, work_at_height, open_circuit_oper, lifting_oper, confined_space_oper, create_uid, gmt_create, gmt_modified, create_uname, modified_uname, modified_uid) values (#{entity.applyDepId}, #{entity.applyDepName}, #{entity.appointmentTime}, #{entity.status}, #{entity.hotWork}, #{entity.groundBreakingOper}, #{entity.blindPlatePluggingOper}, #{entity.temporaryPowerOper}, #{entity.workAtHeight}, #{entity.openCircuitOper}, #{entity.liftingOper}, #{entity.confinedSpaceOper}, #{entity.createUid}, #{entity.gmtCreate}, #{entity.gmtModified}, #{entity.createUname}, #{entity.modifiedUname}, #{entity.modifiedUid}) on duplicate key update apply_dep_id = values(apply_dep_id), apply_dep_name = values(apply_dep_name), appointment_time = values(appointment_time), status = values(status), hot_work = values(hot_work), ground_breaking_oper = values(ground_breaking_oper), blind_plate_plugging_oper = values(blind_plate_plugging_oper), temporary_power_oper = values(temporary_power_oper), work_at_height = values(work_at_height), open_circuit_oper = values(open_circuit_oper), lifting_oper = values(lifting_oper), confined_space_oper = values(confined_space_oper), create_uid = values(create_uid), gmt_create = values(gmt_create), gmt_modified = values(gmt_modified), create_uname = values(create_uname), modified_uname = values(modified_uname), modified_uid = values(modified_uid) update special_work_appointment apply_dep_id = #{applyDepId}, apply_dep_name = #{applyDepName}, appointment_time = #{appointmentTime}, status = #{status}, hot_work = #{hotWork}, ground_breaking_oper = #{groundBreakingOper}, blind_plate_plugging_oper = #{blindPlatePluggingOper}, temporary_power_oper = #{temporaryPowerOper}, work_at_height = #{workAtHeight}, open_circuit_oper = #{openCircuitOper}, lifting_oper = #{liftingOper}, confined_space_oper = #{confinedSpaceOper}, create_uid = #{createUid}, gmt_create = #{gmtCreate}, gmt_modified = #{gmtModified}, create_uname = #{createUname}, modified_uname = #{modifiedUname}, modified_uid = #{modifiedUid}, where id = #{id} update special_work_appointment set status = #{status} where id = #{id} update special_work_appointment set status = #{status} where id in #{id}