select id, equipment_code, equipment_name, equipment_type, workshop_code, line_code, processes_code, error_no, error_desc, alarm_time, whether_recovery, recovery_time, spare_field_1, spare_field_2, spare_field_3, spare_field_4, remarks from em_equipment_alarm
insert into em_equipment_alarm
id,
equipment_code,
equipment_name,
equipment_type,
workshop_code,
line_code,
processes_code,
error_no,
error_desc,
alarm_time,
whether_recovery,
recovery_time,
spare_field_1,
spare_field_2,
spare_field_3,
spare_field_4,
remarks,
#{id},
#{equipmentCode},
#{equipmentName},
#{equipmentType},
#{workshopCode},
#{lineCode},
#{processesCode},
#{errorNo},
#{errorDesc},
#{alarmTime},
#{whetherRecovery},
#{recoveryTime},
#{spareField1},
#{spareField2},
#{spareField3},
#{spareField4},
#{remarks},
update em_equipment_alarm
equipment_code = #{equipmentCode},
equipment_name = #{equipmentName},
equipment_type = #{equipmentType},
workshop_code = #{workshopCode},
line_code = #{lineCode},
processes_code = #{processesCode},
error_no = #{errorNo},
error_desc = #{errorDesc},
alarm_time = #{alarmTime},
whether_recovery = #{whetherRecovery},
recovery_time = #{recoveryTime},
spare_field_1 = #{spareField1},
spare_field_2 = #{spareField2},
spare_field_3 = #{spareField3},
spare_field_4 = #{spareField4},
remarks = #{remarks},
where id = #{id}
delete from em_equipment_alarm where id = #{id}
delete from em_equipment_alarm where id in
#{id}