|
|
@ -31,11 +31,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<result property="fatalities" column="fatalities" /> |
|
|
|
<result property="isPrivate" column="is_private" /> |
|
|
|
<result property="facilityId" column="facility_id" /> |
|
|
|
<result property="roadId" column="road_id" /> |
|
|
|
</resultMap> |
|
|
|
|
|
|
|
<sql id="selectDcEventAccidentVo"> |
|
|
|
select id, reporter_name, reporter_phone_number, accident_type, location_type, traffic_jam, weather_condition, impact_level, is_reverse_cargo, is_maintenance, police_contact, towing_service_contact, congestion_ahead, at_intersection, on_curve, spillage_item, vehicle_owner_phone, lane_occupancy, small_car, trucks, buses, tankers, minor_injuries, serious_injuries, fatalities, is_private, facility_id, road_id from dc_event_accident |
|
|
|
select id, reporter_name, reporter_phone_number, accident_type, location_type, traffic_jam, weather_condition, impact_level, is_reverse_cargo, is_maintenance, police_contact, towing_service_contact, congestion_ahead, at_intersection, on_curve, spillage_item, vehicle_owner_phone, lane_occupancy, small_car, trucks, buses, tankers, minor_injuries, serious_injuries, fatalities, is_private, facility_id from dc_event_accident |
|
|
|
</sql> |
|
|
|
|
|
|
|
<select id="selectDcEventAccidentList" parameterType="DcEventAccident" resultMap="DcEventAccidentResult"> |
|
|
@ -67,7 +66,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="fatalities != null "> and fatalities = #{fatalities}</if> |
|
|
|
<if test="isPrivate != null "> and is_private = #{isPrivate}</if> |
|
|
|
<if test="facilityId != null "> and facility_id = #{facilityId}</if> |
|
|
|
<if test="roadId != null "> and road_id = #{roadId}</if> |
|
|
|
</where> |
|
|
|
</select> |
|
|
|
|
|
|
@ -106,7 +104,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="fatalities != null">fatalities,</if> |
|
|
|
<if test="isPrivate != null">is_private,</if> |
|
|
|
<if test="facilityId != null">facility_id,</if> |
|
|
|
<if test="roadId != null">road_id,</if> |
|
|
|
</trim> |
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
|
<if test="id != null">#{id},</if> |
|
|
@ -136,7 +133,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="fatalities != null">#{fatalities},</if> |
|
|
|
<if test="isPrivate != null">#{isPrivate},</if> |
|
|
|
<if test="facilityId != null">#{facilityId},</if> |
|
|
|
<if test="roadId != null">#{roadId},</if> |
|
|
|
</trim> |
|
|
|
</insert> |
|
|
|
|
|
|
@ -169,7 +165,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="fatalities != null">fatalities = #{fatalities},</if> |
|
|
|
<if test="isPrivate != null">is_private = #{isPrivate},</if> |
|
|
|
<if test="facilityId != null">facility_id = #{facilityId},</if> |
|
|
|
<if test="roadId != null">road_id = #{roadId},</if> |
|
|
|
</trim> |
|
|
|
where id = #{id} |
|
|
|
</update> |
|
|
|