|
|
@ -16,6 +16,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<result property="exitsInlets" column="exits_inlets" /> |
|
|
|
<result property="laneOccupancy" column="lane_occupancy" /> |
|
|
|
<result property="trafficCondition" column="traffic_condition" /> |
|
|
|
<result property="endStakeMark" column="end_stake_mark" /> |
|
|
|
<result property="localRoadName" column="local_road_name" /> |
|
|
|
<result property="location" column="location" /> |
|
|
|
|
|
|
|
<result property="dcFacility.facilityName" column="facility_name" /> |
|
|
|
<result property="dcFacility.facilityType" column="facility_type" /> |
|
|
@ -26,7 +29,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
</resultMap> |
|
|
|
|
|
|
|
<sql id="selectDcEventConstructionVo"> |
|
|
|
select id, control_mode, location_type, special_place_description, special_construction, other_construction_name, construction_measurement, facility_id, exits_inlets, lane_occupancy, traffic_condition from dc_event_construction |
|
|
|
select location,local_road_name,end_stake_mark,id, control_mode, location_type, special_place_description, special_construction, other_construction_name, construction_measurement, facility_id, exits_inlets, lane_occupancy, traffic_condition from dc_event_construction |
|
|
|
</sql> |
|
|
|
<sql id="selectDcEventConstructionVoById"> |
|
|
|
SELECT |
|
|
@ -41,6 +44,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
dc_event_construction.exits_inlets as exits_inlets, |
|
|
|
dc_event_construction.lane_occupancy as lane_occupancy, |
|
|
|
dc_event_construction.traffic_condition as traffic_condition, |
|
|
|
dc_event_construction.local_road_name as local_road_name, |
|
|
|
dc_event_construction.end_stake_mark as end_stake_mark, |
|
|
|
dc_event_construction.location as location, |
|
|
|
dc_facility.other_config as other_config, |
|
|
|
dc_facility.remark as remark, |
|
|
|
dc_facility.stake_mark as stake_mark, |
|
|
@ -86,6 +92,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="exitsInlets != null">exits_inlets,</if> |
|
|
|
<if test="laneOccupancy != null">lane_occupancy,</if> |
|
|
|
<if test="trafficCondition != null">traffic_condition,</if> |
|
|
|
<if test="endStakeMark != null">end_stake_mark,</if> |
|
|
|
<if test="localRoadName != null">local_road_name,</if> |
|
|
|
<if test="location != null">location,</if> |
|
|
|
</trim> |
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
|
<if test="id != null">#{id},</if> |
|
|
@ -99,6 +108,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="exitsInlets != null">#{exitsInlets},</if> |
|
|
|
<if test="laneOccupancy != null">#{laneOccupancy},</if> |
|
|
|
<if test="trafficCondition != null">#{trafficCondition},</if> |
|
|
|
<if test="endStakeMark != null">#{endStakeMark},</if> |
|
|
|
<if test="localRoadName != null">#{localRoadName},</if> |
|
|
|
<if test="location != null">#{location},</if> |
|
|
|
</trim> |
|
|
|
</insert> |
|
|
|
|
|
|
@ -115,6 +127,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="exitsInlets != null">exits_inlets = #{exitsInlets},</if> |
|
|
|
<if test="laneOccupancy != null">lane_occupancy = #{laneOccupancy},</if> |
|
|
|
<if test="trafficCondition != null">traffic_condition = #{trafficCondition},</if> |
|
|
|
<if test="endStakeMark != null">end_stake_mark = #{endStakeMark},</if> |
|
|
|
<if test="localRoadName != null">local_road_name = #{localRoadName},</if> |
|
|
|
<if test="location != null">location = #{location},</if> |
|
|
|
</trim> |
|
|
|
where id = #{id} |
|
|
|
</update> |
|
|
|