Browse Source

修改车辆故障事件

develop
王兴琳 9 months ago
parent
commit
810e287ee3
  1. 1
      zc-business/src/main/java/com/zc/business/service/impl/DcEventServiceImpl.java
  2. 9
      zc-business/src/main/resources/mapper/business/DcEventVehicleAccidentMapper.xml

1
zc-business/src/main/java/com/zc/business/service/impl/DcEventServiceImpl.java

@ -126,6 +126,7 @@ dcEvent.setDeptId(SecurityUtils.getDeptId());
//用户
dcEvent.setUserId(SecurityUtils.getUserId());
dcEvent.setCreateTime(DateUtils.getNowDate());
int i7 = dcEventMapper.insertDcEvent(dcEvent);

9
zc-business/src/main/resources/mapper/business/DcEventVehicleAccidentMapper.xml

@ -4,7 +4,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.zc.business.mapper.DcEventVehicleAccidentMapper">
<resultMap type="DcEventVehicleAccident" id="DcEventVehicleAccidentResult">
<resultMap type="com.zc.business.domain.DcEventVehicleAccident" id="DcEventVehicleAccidentResult">
<result property="id" column="id" />
<result property="reporterName" column="reporter_name" />
<result property="reporterPhoneNumber" column="reporter_phone_number" />
@ -14,7 +14,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="congestionAhead" column="congestion_ahead" />
<result property="atIntersection" column="at_intersection" />
<result property="onCurve" column="on_curve" />
<result property="laneOccupancy" column="lane_occupancy" />
<result property="smallCar" column="small_car" />
<result property="trucks" column="trucks" />
<result property="buses" column="buses" />
@ -26,7 +25,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</resultMap>
<sql id="selectDcEventVehicleAccidentVo">
select id, reporter_name, reporter_phone_number, location_type, traffic_jam, weather_condition, congestion_ahead, at_intersection, on_curve, lane_occupancy, small_car, trucks, buses, tankers, minor_injuries, serious_injuries, fatalities, is_private from dc_event_vehicle_accident
select id, reporter_name, reporter_phone_number, location_type, traffic_jam, weather_condition, congestion_ahead, at_intersection, on_curve, small_car, trucks, buses, tankers, minor_injuries, serious_injuries, fatalities, is_private from dc_event_vehicle_accident
</sql>
<select id="selectDcEventVehicleAccidentList" parameterType="DcEventVehicleAccident" resultMap="DcEventVehicleAccidentResult">
@ -40,7 +39,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="congestionAhead != null "> and congestion_ahead = #{congestionAhead}</if>
<if test="atIntersection != null "> and at_intersection = #{atIntersection}</if>
<if test="onCurve != null "> and on_curve = #{onCurve}</if>
<if test="laneOccupancy != null "> and lane_occupancy = #{laneOccupancy}</if>
<if test="smallCar != null "> and small_car = #{smallCar}</if>
<if test="trucks != null "> and trucks = #{trucks}</if>
<if test="buses != null "> and buses = #{buses}</if>
@ -69,7 +67,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="congestionAhead != null">congestion_ahead,</if>
<if test="atIntersection != null">at_intersection,</if>
<if test="onCurve != null">on_curve,</if>
<if test="laneOccupancy != null">lane_occupancy,</if>
<if test="smallCar != null">small_car,</if>
<if test="trucks != null">trucks,</if>
<if test="buses != null">buses,</if>
@ -89,7 +86,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="congestionAhead != null">#{congestionAhead},</if>
<if test="atIntersection != null">#{atIntersection},</if>
<if test="onCurve != null">#{onCurve},</if>
<if test="laneOccupancy != null">#{laneOccupancy},</if>
<if test="smallCar != null">#{smallCar},</if>
<if test="trucks != null">#{trucks},</if>
<if test="buses != null">#{buses},</if>
@ -112,7 +108,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="congestionAhead != null">congestion_ahead = #{congestionAhead},</if>
<if test="atIntersection != null">at_intersection = #{atIntersection},</if>
<if test="onCurve != null">on_curve = #{onCurve},</if>
<if test="laneOccupancy != null">lane_occupancy = #{laneOccupancy},</if>
<if test="smallCar != null">small_car = #{smallCar},</if>
<if test="trucks != null">trucks = #{trucks},</if>
<if test="buses != null">buses = #{buses},</if>

Loading…
Cancel
Save