select ids,code, project_id, hole_id, type, water_type, shown_water_level, still_water_level, shown_time, still_time, water_depth, get_mode, title, create_time, record_person, description, longitude, latitude, gps_time, is_delete, position, locate_time, reason, pic1, pic2, pic3 from js_hole_shuiwei
insert into js_hole_shuiwei
ids,
code,
project_id,
hole_id,
type,
water_type,
shown_water_level,
still_water_level,
shown_time,
still_time,
water_depth,
get_mode,
title,
create_time,
record_person,
description,
longitude,
latitude,
gps_time,
is_delete,
position,
locate_time,
reason,
pic1,
pic2,
pic3,
#{ids},
#{code},
#{projectId},
#{holeId},
#{type},
#{waterType},
#{shownWaterLevel},
#{stillWaterLevel},
#{shownTime},
#{stillTime},
#{waterDepth},
#{getMode},
#{title},
#{createTime},
#{recordPerson},
#{description},
#{longitude},
#{latitude},
#{gpsTime},
#{isDelete},
#{position},
#{locateTime},
#{reason},
#{pic1},
#{pic2},
#{pic3},
insert into js_hole_shuiwei
(ids,code, project_id, hole_id, type, water_type, shown_water_level, still_water_level, shown_time, still_time, water_depth, get_mode, title, create_time, record_person, description, longitude, latitude, gps_time, is_delete, position, locate_time, reason, pic1, pic2, pic3)
VALUES
(#{item.ids}, #{item.code}, #{item.projectId},#{item.holeId},#{item.type},#{item.waterType},#{item.shownWaterLevel},#{item.stillWaterLevel},#{item.shownTime},#{item.stillTime},#{item.waterDepth},#{item.getMode},
#{item.title},#{item.createTime},#{item.recordPerson},#{item.description},#{item.longitude},#{item.latitude},#{item.gpsTime},#{item.isDelete},#{item.position},#{item.locateTime},#{item.reason},#{item.pic1},#{item.pic2},#{item.pic3})
update js_hole_shuiwei
code = #{code},
project_id = #{projectId},
hole_id = #{holeId},
type = #{type},
water_type = #{waterType},
shown_water_level = #{shownWaterLevel},
still_water_level = #{stillWaterLevel},
shown_time = #{shownTime},
still_time = #{stillTime},
water_depth = #{waterDepth},
get_mode = #{getMode},
title = #{title},
create_time = #{createTime},
record_person = #{recordPerson},
description = #{description},
longitude = #{longitude},
latitude = #{latitude},
gps_time = #{gpsTime},
is_delete = #{isDelete},
position = #{position},
locate_time = #{locateTime},
reason = #{reason},
pic1 = #{pic1},
pic2 = #{pic2},
pic3 = #{pic3},
where ids = #{ids}
delete from js_hole_shuiwei where ids = #{ids}
delete from js_hole_shuiwei where ids in
#{ids}