select id, plant_id, instrument_id, assembly_code, background_value, ambient_temp, ambient_humidity, atmos, wind_direction, wind_speed, tester, test_time,position1,position2,position3,position4,position5, remarks, dept_id, del_flag, creater_code, createdate, updater_code, updatedate from t_check_environment
insert into t_check_environment
plant_id,
instrument_id,
assembly_code,
background_value,
ambient_temp,
ambient_humidity,
atmos,
wind_direction,
wind_speed,
tester,
test_time,
remarks,
dept_id,
del_flag,
creater_code,
createdate,
updater_code,
updatedate,
position1,
position2,
position3,
position4,
position5,
#{plantId},
#{instrumentId},
#{assemblyCode},
#{backgroundValue},
#{ambientTemp},
#{ambientHumidity},
#{atmos},
#{windDirection},
#{windSpeed},
#{tester},
#{testTime},
#{remarks},
#{deptId},
#{delFlag},
#{createrCode},
#{createdate},
#{updaterCode},
#{updatedate},
#{position1},
#{position2},
#{position3},
#{position4},
#{position5},
update t_check_environment
plant_id = #{plantId},
instrument_id = #{instrumentId},
assembly_code = #{assemblyCode},
background_value = #{backgroundValue},
ambient_temp = #{ambientTemp},
ambient_humidity = #{ambientHumidity},
atmos = #{atmos},
wind_direction = #{windDirection},
wind_speed = #{windSpeed},
tester = #{tester},
test_time = #{testTime},
remarks = #{remarks},
dept_id = #{deptId},
del_flag = #{delFlag},
creater_code = #{createrCode},
createdate = #{createdate},
updater_code = #{updaterCode},
updatedate = #{updatedate},
position1 = #{position1},
position2 = #{position2},
position3 = #{position3},
position4 = #{position4},
position5 = #{position5},
where id = #{id}
update t_check_environment set del_flag=1 where id = #{id}
update t_check_environment set del_flag=1 where id in
#{id}