|
|
@@ -81,6 +81,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="suspendExplain" column="suspend_explain" />
|
|
|
<result property="orderAttachment" column="order_attachment" />
|
|
|
<result property="extraWork" column="extra_work" />
|
|
|
+ <result property="acceptReturnType" column="accept_return_type" />
|
|
|
+ <result property="acceptReturnReason" column="accept_return_reason" />
|
|
|
<result property="scoreReturnReason" column="score_return_reason" />
|
|
|
</resultMap>
|
|
|
|
|
|
@@ -143,7 +145,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
review_content, maintenance_type, occur_time, fault_barcode, suspend_reason, suspend_description, approval_status,
|
|
|
rejection_reason, modify_reason, finalization_remark, related_order_code, related_order_content, mis_order_no, restart_time,
|
|
|
scoring_status, pcs_station_pid, attachment_urls, review_score_num, final_coefficient, order_type, repair_method, reset_method, invalid_reason, return_type, return_reason, feedback_reason, confirm_status,
|
|
|
- wwry_num, wlry_num, work_area, info_entry, real_failure_reason, lost_power, work_permit_num, appeal_user_name, appeal_user_id, appeal_time, appeal_reason, suspend_explain, order_entry_type, order_attachment, extra_work, score_return_reason from gxt_repair_order t
|
|
|
+ wwry_num, wlry_num, work_area, info_entry, real_failure_reason, lost_power, work_permit_num, appeal_user_name, appeal_user_id, appeal_time, appeal_reason, suspend_explain, order_entry_type, order_attachment, extra_work, accept_return_type, accept_return_reason, score_return_reason from gxt_repair_order t
|
|
|
left join sys_user u on u.user_name = t.create_by
|
|
|
left join sys_dept d on u.dept_id = d.dept_id
|
|
|
</sql>
|
|
|
@@ -310,6 +312,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="orderEntryType != null and orderEntryType != ''">order_entry_type,</if>
|
|
|
<if test="orderAttachment != null and orderAttachment != ''">order_attachment,</if>
|
|
|
<if test="extraWork != null and extraWork != ''">extra_work,</if>
|
|
|
+ <if test="acceptReturnType != null and acceptReturnType != ''">accept_return_type,</if>
|
|
|
+ <if test="acceptReturnReason != null and acceptReturnReason != ''">accept_return_reason,</if>
|
|
|
<if test="scoreReturnReason != null and scoreReturnReason != ''">score_return_reason,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
@@ -388,6 +392,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="orderEntryType != null and orderEntryType != ''">#{orderEntryType},</if>
|
|
|
<if test="orderAttachment != null and orderAttachment != ''">#{orderAttachment},</if>
|
|
|
<if test="extraWork != null and extraWork != ''">#{extraWork},</if>
|
|
|
+ <if test="acceptReturnType != null and acceptReturnType != ''">#{acceptReturnType},</if>
|
|
|
+ <if test="acceptReturnReason != null and acceptReturnReason != ''">#{acceptReturnReason},</if>
|
|
|
<if test="scoreReturnReason != null and scoreReturnReason != ''">#{scoreReturnReason},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
@@ -470,6 +476,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="orderEntryType != null and orderEntryType != ''">order_entry_type = #{orderEntryType},</if>
|
|
|
<if test="orderAttachment != null and orderAttachment != ''">order_attachment = #{orderAttachment},</if>
|
|
|
<if test="extraWork != null and extraWork != ''">extra_work = #{extraWork},</if>
|
|
|
+ <if test="acceptReturnType != null and acceptReturnType != ''">accept_return_type = #{acceptReturnType},</if>
|
|
|
+ <if test="acceptReturnReason != null and acceptReturnReason != ''">accept_return_reason = #{acceptReturnReason},</if>
|
|
|
<if test="scoreReturnReason != null and scoreReturnReason != ''">score_return_reason = #{scoreReturnReason},</if>
|
|
|
</trim>
|
|
|
where id = #{id}
|
|
|
@@ -614,6 +622,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
t1.return_reason,
|
|
|
t1.order_attachment,
|
|
|
t1.extra_work,
|
|
|
+ t1.accept_return_type,
|
|
|
+ t1.accept_return_reason,
|
|
|
+ t1.score_return_reason,
|
|
|
t2.id as person_id,
|
|
|
t2.user_id as person_user_id,
|
|
|
t2.nick_name as person_nick_name,
|