|
|
@ -20,6 +20,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<result property="localRoadName" column="local_road_name" /> |
|
|
|
<result property="location" column="location" /> |
|
|
|
<result property="constructionMethod" column="construction_method" /> |
|
|
|
<result property="rampId" column="ramp_id" /> |
|
|
|
|
|
|
|
<result property="dcFacility.facilityName" column="facility_name" /> |
|
|
|
<result property="dcFacility.facilityType" column="facility_type" /> |
|
|
@ -30,11 +31,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
</resultMap> |
|
|
|
|
|
|
|
<sql id="selectDcEventConstructionVo"> |
|
|
|
select construction_method,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 |
|
|
|
select construction_method,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,ramp_id from dc_event_construction |
|
|
|
</sql> |
|
|
|
<sql id="selectDcEventConstructionVoById"> |
|
|
|
SELECT |
|
|
|
dc_event_construction.id as id, |
|
|
|
dc_event_construction.ramp_id as ramp_id, |
|
|
|
dc_event_construction.construction_method as construction_method, |
|
|
|
dc_event_construction.control_mode as control_mode, |
|
|
|
dc_event_construction.location_type as location_type, |
|
|
@ -49,6 +51,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
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_event_construction.ramp_id as ramp_id, |
|
|
|
dc_facility.other_config as other_config, |
|
|
|
dc_facility.remark as remark, |
|
|
|
dc_facility.stake_mark as stake_mark, |
|
|
@ -98,6 +101,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="localRoadName != null">local_road_name,</if> |
|
|
|
<if test="location != null">location,</if> |
|
|
|
<if test="constructionMethod != null">construction_method,</if> |
|
|
|
<if test="rampId != null">ramp_id,</if> |
|
|
|
</trim> |
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
|
<if test="id != null">#{id},</if> |
|
|
@ -115,6 +119,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="localRoadName != null">#{localRoadName},</if> |
|
|
|
<if test="location != null">#{location},</if> |
|
|
|
<if test="constructionMethod != null">#{constructionMethod},</if> |
|
|
|
<if test="rampId != null">#{rampId},</if> |
|
|
|
</trim> |
|
|
|
</insert> |
|
|
|
|
|
|
@ -135,6 +140,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="localRoadName != null">local_road_name = #{localRoadName},</if> |
|
|
|
<if test="location != null">location = #{location},</if> |
|
|
|
<if test="constructionMethod != null">construction_method = #{constructionMethod},</if> |
|
|
|
<if test="rampId != null">ramp_id = #{rampId},</if> |
|
|
|
</trim> |
|
|
|
where id = #{id} |
|
|
|
</update> |
|
|
|