|
|
@ -12,6 +12,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<result property="rampId" column="ramp_id" /> |
|
|
|
<result property="location" column="location" /> |
|
|
|
<result property="maxCongestionMileage" column="max_congestion_mileage" /> |
|
|
|
<result property="locationDescription" column="location_description" /> |
|
|
|
<result property="locationType" column="location_type" /> |
|
|
|
<result property="detailedReasons" column="detailed_reasons" /> |
|
|
|
|
|
|
|
<result property="dcFacility.facilityName" column="facility_name" /> |
|
|
|
<result property="dcFacility.facilityType" column="facility_type" /> |
|
|
@ -23,7 +26,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
</resultMap> |
|
|
|
|
|
|
|
<sql id="selectDcEventTrafficCongestionVo"> |
|
|
|
select id, congestion_mileage, congestion_cause, facility_id, ramp_id, location,max_congestion_mileage from dc_event_traffic_congestion |
|
|
|
select location_type,location_description,detailed_reasons,id, congestion_mileage, congestion_cause, facility_id, ramp_id, location,max_congestion_mileage from dc_event_traffic_congestion |
|
|
|
</sql> |
|
|
|
<!-- --> |
|
|
|
<sql id="selectDcEventTrafficCongestionVoById"> |
|
|
@ -35,6 +38,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
dc_event_traffic_congestion.location as location, |
|
|
|
dc_event_traffic_congestion.ramp_id as ramp_id, |
|
|
|
dc_event_traffic_congestion.max_congestion_mileage as max_congestion_mileage, |
|
|
|
dc_event_traffic_congestion.location_type as location_type, |
|
|
|
dc_event_traffic_congestion.location_description as location_description, |
|
|
|
dc_event_traffic_congestion.detailed_reasons as detailed_reasons, |
|
|
|
|
|
|
|
dc_facility.other_config as other_config, |
|
|
|
dc_facility.remark as remark, |
|
|
@ -72,6 +78,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="rampId != null">ramp_id,</if> |
|
|
|
<if test="location != null">location,</if> |
|
|
|
<if test="maxCongestionMileage != null">max_congestion_mileage,</if> |
|
|
|
<if test="locationDescription != null">location_description,</if> |
|
|
|
<if test="locationType != null">location_type,</if> |
|
|
|
<if test="detailedReasons != null">detailed_reasons,</if> |
|
|
|
</trim> |
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
|
<if test="id != null">#{id},</if> |
|
|
@ -81,6 +90,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="rampId != null">#{rampId},</if> |
|
|
|
<if test="location != null">#{location},</if> |
|
|
|
<if test="maxCongestionMileage != null">#{maxCongestionMileage},</if> |
|
|
|
<if test="locationDescription != null">#{locationDescription},</if> |
|
|
|
<if test="locationType != null">#{locationType},</if> |
|
|
|
<if test="detailedReasons != null">#{detailedReasons},</if> |
|
|
|
</trim> |
|
|
|
</insert> |
|
|
|
|
|
|
@ -93,6 +105,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="rampId != null">ramp_id = #{rampId},</if> |
|
|
|
<if test="location != null">location = #{location},</if> |
|
|
|
<if test="maxCongestionMileage != null">max_congestion_mileage = #{maxCongestionMileage},</if> |
|
|
|
<if test="locationDescription != null">location_description = #{locationDescription},</if> |
|
|
|
<if test="locationType != null">location_type = #{locationType},</if> |
|
|
|
<if test="detailedReasons != null">detailed_reasons = #{detailedReasons},</if> |
|
|
|
</trim> |
|
|
|
where id = #{id} |
|
|
|
</update> |
|
|
|