INSERT INTO t_bad_weather
date,weather,min_temperature,max_temperature,warning,upload_id,
upload_time
#{date},#{weather},#{minTemperature},#{maxTemperature},#{warning},#{uploadId},
NOW()
INSERT INTO t_rectification_punishment
name,type,regulationsPath,punishmentPath,upload_id,upload_time#{name},#{type},#{regulationsPath},#{punishmentPath},#{uploadId},#{uploadTime}
INSERT INTO t_bad_weather(
date,
weather,
min_temperature,
max_temperature,
warning,
status,
upload_time,
update_time,
is_active,
area_name,
work_content
)values
( #{item.date},#{item.weather},#{item.minTemperature},#{item.maxTemperature} ,#{item.warning} ,0,now(),now(),1,#{item.areaName},#{item.workContent} )
update t_rectification_punishment
set is_active = 0
where id = #{id}
update t_bad_weather
set status = 1
where id = #{id}
delete from t_bad_weather
delete from t_bad_weather where id=#{id}