|
@ -13,6 +13,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
<result property="rampId" column="ramp_id" /> |
|
|
<result property="rampId" column="ramp_id" /> |
|
|
<result property="rampId" column="road_id" /> |
|
|
<result property="rampId" column="road_id" /> |
|
|
<result property="causeType" column="cause_type" /> |
|
|
<result property="causeType" column="cause_type" /> |
|
|
|
|
|
|
|
|
|
|
|
<result property="measure" column="measure" /> |
|
|
|
|
|
<result property="classify" column="classify" /> |
|
|
|
|
|
<result property="limitedType" column="limited_type" /> |
|
|
|
|
|
<result property="vehicleType" column="vehicle_type" /> |
|
|
<result property="dcFacility.facilityName" column="facility_name" /> |
|
|
<result property="dcFacility.facilityName" column="facility_name" /> |
|
|
<result property="dcFacility.facilityType" column="facility_type" /> |
|
|
<result property="dcFacility.facilityType" column="facility_type" /> |
|
|
<result property="dcFacility.direction" column="direction" /> |
|
|
<result property="dcFacility.direction" column="direction" /> |
|
@ -23,7 +28,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
</resultMap> |
|
|
</resultMap> |
|
|
|
|
|
|
|
|
<sql id="selectDcEventTrafficControlVo"> |
|
|
<sql id="selectDcEventTrafficControlVo"> |
|
|
select id, control_type, control_cause, exits_inlets, facility_id, ramp_id,road_id,cause_type from dc_event_traffic_control |
|
|
select id, control_type, control_cause, exits_inlets, facility_id, ramp_id,road_id,cause_type,measure,classify,limited_type,vehicle_type from dc_event_traffic_control |
|
|
</sql> |
|
|
</sql> |
|
|
<!--关联路网设施查询--> |
|
|
<!--关联路网设施查询--> |
|
|
<sql id="selectDcEventTrafficControlVoById"> |
|
|
<sql id="selectDcEventTrafficControlVoById"> |
|
@ -50,6 +55,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
<if test="facilityId != null "> and facility_id = #{facilityId}</if> |
|
|
<if test="facilityId != null "> and facility_id = #{facilityId}</if> |
|
|
<if test="rampId != null "> and ramp_id = #{rampId}</if> |
|
|
<if test="rampId != null "> and ramp_id = #{rampId}</if> |
|
|
<if test="causeType != null "> and cause_type = #{causeType}</if> |
|
|
<if test="causeType != null "> and cause_type = #{causeType}</if> |
|
|
|
|
|
|
|
|
|
|
|
<if test="measure != null "> and measure = #{measure}</if> |
|
|
|
|
|
<if test="classify != null "> and classify = #{classify}</if> |
|
|
|
|
|
<if test="limitedType != null "> and limited_type = #{limitedType}</if> |
|
|
|
|
|
<if test="vehicleType != null "> and vehicle_type = #{vehicleType}</if> |
|
|
|
|
|
|
|
|
</where> |
|
|
</where> |
|
|
</select> |
|
|
</select> |
|
|
|
|
|
|
|
@ -70,6 +81,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
<if test="rampId != null">ramp_id,</if> |
|
|
<if test="rampId != null">ramp_id,</if> |
|
|
<if test="roadId != null">road_id,</if> |
|
|
<if test="roadId != null">road_id,</if> |
|
|
<if test="causeType != null">cause_type,</if> |
|
|
<if test="causeType != null">cause_type,</if> |
|
|
|
|
|
|
|
|
|
|
|
<if test="measure != null">measure,</if> |
|
|
|
|
|
<if test="classify != null">classify,</if> |
|
|
|
|
|
<if test="vehicleType != null">vehicle_type,</if> |
|
|
|
|
|
<if test="limitedType != null">limited_type,</if> |
|
|
</trim> |
|
|
</trim> |
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
<if test="id != null">#{id},</if> |
|
|
<if test="id != null">#{id},</if> |
|
@ -80,6 +96,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
<if test="rampId != null">#{rampId},</if> |
|
|
<if test="rampId != null">#{rampId},</if> |
|
|
<if test="roadId != null">#{roadId},</if> |
|
|
<if test="roadId != null">#{roadId},</if> |
|
|
<if test="causeType != null">#{causeType},</if> |
|
|
<if test="causeType != null">#{causeType},</if> |
|
|
|
|
|
|
|
|
|
|
|
<if test="measure != null">#{measure},</if> |
|
|
|
|
|
<if test="classify != null">#{classify},</if> |
|
|
|
|
|
<if test="vehicleType != null">#{vehicleType},</if> |
|
|
|
|
|
<if test="limitedType != null">#{limitedType},</if> |
|
|
</trim> |
|
|
</trim> |
|
|
</insert> |
|
|
</insert> |
|
|
|
|
|
|
|
@ -93,6 +114,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
<if test="rampId != null">ramp_id = #{rampId},</if> |
|
|
<if test="rampId != null">ramp_id = #{rampId},</if> |
|
|
<if test="roadId != null">road_id = #{roadId},</if> |
|
|
<if test="roadId != null">road_id = #{roadId},</if> |
|
|
<if test="causeType != null">cause_type = #{causeType},</if> |
|
|
<if test="causeType != null">cause_type = #{causeType},</if> |
|
|
|
|
|
<if test="measure != null">measure = #{measure},</if> |
|
|
|
|
|
<if test="classify != null">classify = #{classify},</if> |
|
|
|
|
|
<if test="vehicleType != null">vehicle_type = #{vehicleType},</if> |
|
|
|
|
|
<if test="limitedType != null">limited_type = #{limitedType},</if> |
|
|
</trim> |
|
|
</trim> |
|
|
where id = #{id} |
|
|
where id = #{id} |
|
|
</update> |
|
|
</update> |
|
|