insert into tht_hidden_danger_road (nid, business_id)
values (#{uuid}, #{businessId})
update tht_hidden_danger_road thdr
set address = #{address},
coordinate = #{coordinate}
where business_id = #{businessId}
update tht_hidden_danger_road
set section_code = #{sectionCode}
where business_id = #{businessId};
update tht_hidden_danger_road thdr
set address = #{address},
coordinate = #{coordinate}
where business_id = #{businessId}
insert into tht_section_info
values (nextval('test_id_seq'),
#{businessId},
#{roadType},
#{roadWidth},
#{laneCount},
#{roadStructure},
#{sideProtec},
#{centerSeparate},
#{designSpeed},
#{limitSpeed})
RETURNING #{businessId};
update tht_section_info
set "ROAD_TYPE" = #{roadType},
"ROAD_WIDTH" = #{roadWidth},
"LANE_COUNT" = #{laneCount},
"ROAD_STRUCTURE" = #{roadStructure},
"SIDE_PROTEC" = #{sideProtec},
"CENTER_SEPARATE" = #{centerSeparate},
"DESIGN_SPEED" = #{designSpeed},
"LIMIT_SPEED" = #{limitSpeed}
where "BUSINESS_ID" = #{businessId}
insert into tht_section_traffic
values (nextval('test_id_seq1'),
#{businessId},
#{passingTrend},
#{maxTraffic},
#{peakTraffic},
#{peakHours},
#{normalTraffic},
#{largeVehicleRate},
#{nonvehicleTraffic},
#{lastModeUser},
#{lastModeDate})
update tht_section_traffic
set "PASSING_TREND" = #{passingTrend},
"MAX_TRAFFIC" = #{maxTraffic},
"PEAK_TRAFFIC" = #{peakTraffic},
"PEAK_HOURS" = #{peakHours},
"NORMAL_TRAFFIC" = #{normalTraffic},
"LARGE_VEHICLE_RATE" = #{largeVehicleRate},
"NONVEHICLE_TRAFFIC" = #{nonvehicleTraffic},
"LAST_MOD_USER" = #{lastModeUser},
"LAST_MOD_DATE" = #{lastModeDate}
where "BUSINESS_ID" = #{businessId}
update tht_hidden_danger_base
set status = #{temporary}
where business_id = #{businessId}
update tht_hidden_danger_road
set hd_flag = #{hdFlag}
,pc_end_time = CURRENT_TIMESTAMP
where business_id = #{businessId}
and pc_count = #{pcCount}
INSERT INTO tht_hidden_data_collect_config_extra (nid, itemid, "order", type, name, standar, unit, business_id)
VALUES (nextval('test_id_seq2'), #{itemid}, #{order}, #{type}, #{name}, #{standar}, #{unit}, #{businessId})
insert into bis_road ("road_code", "road_name", "position")
values (#{roadCode}, #{roadName}, #{position})
delete
from tht_hidden_danger_road_info
where business_id = #{businessId}
update tht_hidden_danger_road
set pc_type = #{pcType}
where business_id = #{businessId}