|
|
@ -15,6 +15,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<result property="locationDescription" column="location_description" /> |
|
|
|
<result property="locationType" column="location_type" /> |
|
|
|
<result property="detailedReasons" column="detailed_reasons" /> |
|
|
|
<result property="endStakeMark" column="end_stake_mark" /> |
|
|
|
|
|
|
|
<result property="dcFacility.facilityName" column="facility_name" /> |
|
|
|
<result property="dcFacility.facilityType" column="facility_type" /> |
|
|
@ -26,7 +27,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
</resultMap> |
|
|
|
|
|
|
|
<sql id="selectDcEventTrafficCongestionVo"> |
|
|
|
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 |
|
|
|
select end_stake_mark,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"> |
|
|
@ -41,6 +42,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
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_event_traffic_congestion.end_stake_mark as end_stake_mark, |
|
|
|
|
|
|
|
dc_facility.other_config as other_config, |
|
|
|
dc_facility.remark as remark, |
|
|
@ -81,6 +83,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="locationDescription != null">location_description,</if> |
|
|
|
<if test="locationType != null">location_type,</if> |
|
|
|
<if test="detailedReasons != null">detailed_reasons,</if> |
|
|
|
<if test="endStakeMark != null">end_stake_mark,</if> |
|
|
|
</trim> |
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
|
<if test="id != null">#{id},</if> |
|
|
@ -93,6 +96,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="locationDescription != null">#{locationDescription},</if> |
|
|
|
<if test="locationType != null">#{locationType},</if> |
|
|
|
<if test="detailedReasons != null">#{detailedReasons},</if> |
|
|
|
<if test="endStakeMark != null">#{end_stake_mark},</if> |
|
|
|
</trim> |
|
|
|
</insert> |
|
|
|
|
|
|
@ -108,6 +112,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="locationDescription != null">location_description = #{locationDescription},</if> |
|
|
|
<if test="locationType != null">location_type = #{locationType},</if> |
|
|
|
<if test="detailedReasons != null">detailed_reasons = #{detailedReasons},</if> |
|
|
|
<if test="endStakeMark != null">end_stake_mark = #{endStakeMark},</if> |
|
|
|
</trim> |
|
|
|
where id = #{id} |
|
|
|
</update> |
|
|
|