|
|
@@ -51,10 +51,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="relatedOrderCode" column="related_order_code" />
|
|
|
<result property="relatedOrderContent" column="related_order_content" />
|
|
|
<result property="misOrderNo" column="mis_order_no" />
|
|
|
+ <result property="restartTime" column="restart_time" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectGxtRepairOrderVo">
|
|
|
- select id, work_order_project_no, work_order_status, gxt_center_id, gxt_center, pcs_station_id, pcs_station_name, pcs_device_id, pcs_device_name, brand, model, fault_code, fault_desc, assign_time, assign_user_id, assign_user_name, accept_time, accept_user_id, accept_user_name, real_start_time, real_end_time, team_leader_id, team_leader_name, work_group_member_id, work_group_member_name, create_by, create_time, update_by, update_time, remark, content, plan_hour, priority_type, score, review_content, maintenance_type, occur_time, fault_barcode, suspend_reason, suspend_description, approval_status, rejection_reason, finalization_remark, related_order_code, related_order_content, mis_order_no from gxt_repair_order
|
|
|
+ select id, work_order_project_no, work_order_status, gxt_center_id, gxt_center, pcs_station_id, pcs_station_name, pcs_device_id, pcs_device_name, brand, model, fault_code, fault_desc, assign_time, assign_user_id, assign_user_name, accept_time, accept_user_id, accept_user_name, real_start_time, real_end_time, team_leader_id, team_leader_name, work_group_member_id, work_group_member_name, create_by, create_time, update_by, update_time, remark, content, plan_hour, priority_type, score, review_content, maintenance_type, occur_time, fault_barcode, suspend_reason, suspend_description, approval_status, rejection_reason, finalization_remark, related_order_code, related_order_content, mis_order_no, restart_time from gxt_repair_order
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectGxtRepairOrderList" parameterType="GxtRepairOrder" resultMap="GxtRepairOrderResult">
|
|
|
@@ -100,6 +101,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="relatedOrderCode != null and relatedOrderCode != ''"> and related_order_code = #{relatedOrderCode}</if>
|
|
|
<if test="relatedOrderContent != null and relatedOrderContent != ''"> and related_order_content = #{relatedOrderContent}</if>
|
|
|
<if test="misOrderNo != null and misOrderNo != ''"> and mis_order_no = #{misOrderNo}</if>
|
|
|
+ <if test="restartTime != null "> and restart_time = #{restartTime}</if>
|
|
|
</where>
|
|
|
order by id desc
|
|
|
</select>
|
|
|
@@ -157,6 +159,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="relatedOrderCode != null">related_order_code,</if>
|
|
|
<if test="relatedOrderContent != null">related_order_content,</if>
|
|
|
<if test="misOrderNo != null">mis_order_no,</if>
|
|
|
+ <if test="restartTime != null">restart_time,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="workOrderProjectNo != null and workOrderProjectNo != ''">#{workOrderProjectNo},</if>
|
|
|
@@ -204,6 +207,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="relatedOrderCode != null">#{relatedOrderCode},</if>
|
|
|
<if test="relatedOrderContent != null">#{relatedOrderContent},</if>
|
|
|
<if test="misOrderNo != null">#{misOrderNo},</if>
|
|
|
+ <if test="restartTime != null">#{restartTime},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
|
@@ -255,6 +259,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="relatedOrderCode != null">related_order_code = #{relatedOrderCode},</if>
|
|
|
<if test="relatedOrderContent != null">related_order_content = #{relatedOrderContent},</if>
|
|
|
<if test="misOrderNo != null">mis_order_no = #{misOrderNo},</if>
|
|
|
+ <if test="restartTime != null">restart_time = #{restartTime},</if>
|
|
|
</trim>
|
|
|
where id = #{id}
|
|
|
</update>
|