select objid, monitor_id, monitor_name, line_loss_rate, max_traffic, min_traffic, hour_consumption, day_consumption,
threshold_status, dept_id, user_id, create_by, create_time,
update_by, update_time
from base_water_threshold
insert into base_water_threshold
monitor_id,
monitor_name,
max_traffic,
min_traffic,
hour_consumption,
day_consumption,
line_loss_rate,
threshold_status,
dept_id,
user_id,
create_by,
create_time,
update_by,
update_time,
#{monitorId},
#{monitorName},
#{maxTraffic},
#{minTraffic},
#{hourConsumption},
#{dayConsumption},
#{lineLossRate},
#{thresholdStatus},
#{deptId},
#{userId},
#{createBy},
#{createTime},
#{updateBy},
#{updateTime},
update base_water_threshold
monitor_id = #{monitorId},
monitor_name = #{monitorName},
max_traffic = #{maxTraffic},
min_traffic = #{minTraffic},
hour_consumption = #{hourConsumption},
day_consumption = #{dayConsumption},
line_loss_rate = #{lineLossRate},
threshold_status = #{thresholdStatus},
dept_id = #{deptId},
user_id = #{userId},
create_by = #{createBy},
create_time = #{createTime},
update_by = #{updateBy},
update_time = #{updateTime},
where objid = #{objid}
delete from base_water_threshold where objid = #{objid}
delete from base_water_threshold where objid in
#{objid}