|
|
@@ -8,6 +8,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="id" column="id" />
|
|
|
<result property="planId" column="plan_id" />
|
|
|
<result property="lane" column="lane" />
|
|
|
+ <result property="dept" column="dept" />
|
|
|
<result property="startTime" column="start_time" />
|
|
|
<result property="endTime" column="end_time" />
|
|
|
<result property="manageUser" column="manage_user" />
|
|
|
@@ -27,16 +28,17 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="endHectometer" column="end_hectometer" />
|
|
|
<result property="contentOne" column="content_one" />
|
|
|
<result property="contentTwo" column="content_two" />
|
|
|
+ <result property="contentDes" column="content_des" />
|
|
|
<result property="auditDept" column="audit_dept" />
|
|
|
<result property="status" column="status" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectSysReportVo">
|
|
|
- select a.id, a.plan_id, a.lane, a.start_time, a.end_time, a.manage_user, a.manage_phone, a.save_user, a.save_phone,
|
|
|
- a.create_user, a.create_time, a.update_user, a.update_time, a.is_merge,a.status,a.audit_dept,b.section,b.direction,b.start_km,b.start_hectometer,
|
|
|
- b.end_km,b.end_hectometer,b.content_one,b.content_two
|
|
|
+ select a.id, a.plan_id, a.lane,a.dept, a.start_time, a.end_time, a.manage_user, a.manage_phone, a.save_user, a.save_phone,
|
|
|
+ a.create_user, a.create_time, a.update_user, a.update_time, a.is_merge,a.status,a.audit_dept,a.section,a.direction,a.start_km,a.start_hectometer,
|
|
|
+ a.end_km,a.end_hectometer,a.content_one,a.content_two,a.content_des
|
|
|
from
|
|
|
- sys_report a left join sys_plan b on a.plan_id = b.id
|
|
|
+ sys_report a
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectSysReportList" parameterType="SysReport" resultMap="SysReportResult">
|
|
|
@@ -79,7 +81,17 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="updateTime != null">update_time,</if>
|
|
|
<if test="isMerge != null">is_merge,</if>
|
|
|
<if test="status != null">status,</if>
|
|
|
- <if test="auditDept != null">#{audit_dept},</if>
|
|
|
+ <if test="auditDept != null">audit_dept,</if>
|
|
|
+ <if test="dept != null">dept,</if>
|
|
|
+ <if test="section != null">section,</if>
|
|
|
+ <if test="direction != null">direction,</if>
|
|
|
+ <if test="startKm != null">start_km,</if>
|
|
|
+ <if test="startHectometer != null">start_hectometer,</if>
|
|
|
+ <if test="endKm != null">end_km,</if>
|
|
|
+ <if test="endHectometer != null">end_hectometer,</if>
|
|
|
+ <if test="contentOne != null">content_one,</if>
|
|
|
+ <if test="contentTwo != null">content_two,</if>
|
|
|
+ <if test="contentDes != null">content_des,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="planId != null">#{planId},</if>
|
|
|
@@ -97,6 +109,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="isMerge != null">#{isMerge},</if>
|
|
|
<if test="status != null">#{status},</if>
|
|
|
<if test="auditDept != null">#{auditDept},</if>
|
|
|
+ <if test="dept != null">#{dept},</if>
|
|
|
+ <if test="section != null">#{section},</if>
|
|
|
+ <if test="direction != null">#{direction},</if>
|
|
|
+ <if test="startKm != null">#{startKm},</if>
|
|
|
+ <if test="startHectometer != null">#{startHectometer},</if>
|
|
|
+ <if test="endKm != null">#{endKm},</if>
|
|
|
+ <if test="endHectometer != null">#{endHectometer},</if>
|
|
|
+ <if test="contentOne != null">#{contentOne},</if>
|
|
|
+ <if test="contentTwo != null">#{contentTwo},</if>
|
|
|
+ <if test="contentDes != null">#{contentDes},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
|
@@ -118,6 +140,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="isMerge != null">is_merge = #{isMerge},</if>
|
|
|
<if test="status != null">status = #{status},</if>
|
|
|
<if test="auditDept != null">audit_dept = #{auditDept},</if>
|
|
|
+ <if test="section != null">section = #{section},</if>
|
|
|
+ <if test="direction != null">direction = #{direction},</if>
|
|
|
+ <if test="startKm != null">start_km = #{startKm},</if>
|
|
|
+ <if test="startHectometer != null">start_hectometer = #{startHectometer},</if>
|
|
|
+ <if test="endKm != null">end_km = #{endKm},</if>
|
|
|
+ <if test="endHectometer != null">end_hectometer = #{endHectometer},</if>
|
|
|
+ <if test="contentOne != null">content_one = #{contentOne},</if>
|
|
|
+ <if test="contentTwo != null">content_two = #{contentTwo},</if>
|
|
|
+ <if test="contentDes != null">content_des = #{contentDes},</if>
|
|
|
+ <if test="dept != null">dept = #{dept},</if>
|
|
|
</trim>
|
|
|
where id = #{id}
|
|
|
</update>
|