select id,
facility_id,
shinfo_id,
device_id_code,
gps_long,
gps_lat,
speed,
direction,
poster,
electric_quantity,
step_number,
roll_number,
status_type,
alarm_type,
terminal_status,
createtime,
alarm_from_type,
msg,
is_send,
send_time
from t_shouhuan_alarm_list
insert into t_shouhuan_alarm_list
facility_id,
shinfo_id,
device_id_code,
gps_long,
gps_lat,
use_gps_long,
use_gps_lat,
location,
speed,
direction,
poster,
electric_quantity,
step_number,
roll_number,
status_type,
alarm_type,
terminal_status,
createtime,
alarm_from_type,
msg,
is_send,
send_time,
#{facilityId},
#{shinfoId},
#{deviceIdCode},
#{gpsLong},
#{gpsLat},
use_gps_long,
use_gps_lat,
location,
#{speed},
#{direction},
#{poster},
#{electricQuantity},
#{stepNumber},
#{rollNumber},
#{statusType},
#{alarmType},
#{terminalStatus},
#{createTime},
#{alarmFromType},
#{msg},
#{isSend},
#{sendTime},
update t_shouhuan_alarm_list
facility_id = #{facilityId},
shinfo_id = #{shinfoId},
device_id_code = #{deviceIdCode},
gps_long = #{gpsLong},
gps_lat = #{gpsLat},
speed = #{speed},
direction = #{direction},
poster = #{poster},
electric_quantity = #{electricQuantity},
step_number = #{stepNumber},
roll_number = #{rollNumber},
status_type = #{statusType},
alarm_type = #{alarmType},
terminal_status = #{terminalStatus},
createtime = #{createTime},
alarm_from_type = #{alarmFromType},
msg = #{msg},
is_send = #{isSend},
send_time = #{sendTime},
where id = #{id}
delete
from t_shouhuan_alarm_list
where id = #{id}
delete from t_shouhuan_alarm_list where id in
#{id}