select id, user_id, state, type, content, event_record, location, lng, lat, create_time, update_time, facility_id, device_id_code, alarm_id, type_desc from t_early_warning insert into t_early_warning user_id, state, type, content, event_record, location, lng, lat, create_time, update_time, facility_id, device_id_code, alarm_id, type_desc, #{userId}, #{state}, #{type}, #{content}, #{eventRecord}, #{location}, #{lng}, #{lat}, #{createTime}, #{updateTime}, #{facilityId}, #{deviceIdCode}, #{alarmId}, #{typeDesc}, update t_early_warning user_id = #{userId}, state = #{state}, type = #{type}, content = #{content}, event_record = #{eventRecord}, location = #{location}, lng = #{lng}, lat = #{lat}, create_time = #{createTime}, update_time = #{updateTime}, facility_id = #{facilityId}, device_id_code = #{deviceIdCode}, alarm_id = #{alarmId}, type_desc = #{typeDesc}, where id = #{id} delete from t_early_warning where id = #{id} delete from t_early_warning where id in #{id}