|
@@ -294,7 +294,7 @@
|
|
|
FROM gxt_repair_order t
|
|
FROM gxt_repair_order t
|
|
|
<where>
|
|
<where>
|
|
|
<if test="keyword != null and keyword != ''">
|
|
<if test="keyword != null and keyword != ''">
|
|
|
- and (work_order_project_no like concat('%', #{keyword}, '%') or pcs_device_name like concat('%', #{keyword}, '%') or mis_order_no = #{keyword} or work_permit_num = #{keyword})
|
|
|
|
|
|
|
+ and (work_order_project_no like concat('%', #{keyword}, '%') or pcs_device_name like concat('%', #{keyword}, '%') or mis_order_no = #{keyword})
|
|
|
</if>
|
|
</if>
|
|
|
<if test="repairOrder.workOrderProjectNo != null and repairOrder.workOrderProjectNo != ''"> and work_order_project_no = #{repairOrder.workOrderProjectNo}</if>
|
|
<if test="repairOrder.workOrderProjectNo != null and repairOrder.workOrderProjectNo != ''"> and work_order_project_no = #{repairOrder.workOrderProjectNo}</if>
|
|
|
<if test="repairOrder.workOrderStatus != null and repairOrder.workOrderStatus != ''"> and work_order_status in
|
|
<if test="repairOrder.workOrderStatus != null and repairOrder.workOrderStatus != ''"> and work_order_status in
|
|
@@ -311,6 +311,7 @@
|
|
|
<if test="repairOrder.teamLeaderName != null and repairOrder.teamLeaderName != ''"> and team_leader_name like concat('%', #{repairOrder.teamLeaderName}, '%')</if>
|
|
<if test="repairOrder.teamLeaderName != null and repairOrder.teamLeaderName != ''"> and team_leader_name like concat('%', #{repairOrder.teamLeaderName}, '%')</if>
|
|
|
<if test="repairOrder.scoringStatus != null"> and scoring_status = #{repairOrder.scoringStatus}</if>
|
|
<if test="repairOrder.scoringStatus != null"> and scoring_status = #{repairOrder.scoringStatus}</if>
|
|
|
<if test="repairOrder.orderType != null and repairOrder.orderType != ''"> and 1 = #{repairOrder.orderType}</if>
|
|
<if test="repairOrder.orderType != null and repairOrder.orderType != ''"> and 1 = #{repairOrder.orderType}</if>
|
|
|
|
|
+ <if test="repairOrder.workPermitNum != null and repairOrder.workPermitNum != ''"> and work_permit_num = #{repairOrder.workPermitNum}</if>
|
|
|
<!-- 超时工单条件:accept_time为空,并且当前时间超过assign_time并且超过时间大于配置值 -->
|
|
<!-- 超时工单条件:accept_time为空,并且当前时间超过assign_time并且超过时间大于配置值 -->
|
|
|
<if test="repairOrder.params.overdueCondition != null and repairOrder.params.overdueCondition == 'overdue'">
|
|
<if test="repairOrder.params.overdueCondition != null and repairOrder.params.overdueCondition == 'overdue'">
|
|
|
and work_order_status = 'assigned'
|
|
and work_order_status = 'assigned'
|
|
@@ -391,7 +392,7 @@
|
|
|
FROM gxt_work_order t
|
|
FROM gxt_work_order t
|
|
|
<where>
|
|
<where>
|
|
|
<if test="keyword != null and keyword != ''">
|
|
<if test="keyword != null and keyword != ''">
|
|
|
- and (work_order_project_no like concat('%', #{keyword}, '%') or pcs_device_name like concat('%', #{keyword}, '%') or mis_no = #{keyword} or work_permit_num = #{keyword})
|
|
|
|
|
|
|
+ and (work_order_project_no like concat('%', #{keyword}, '%') or pcs_device_name like concat('%', #{keyword}, '%') or mis_no = #{keyword})
|
|
|
</if>
|
|
</if>
|
|
|
<if test="workOrder.workOrderProjectNo != null and workOrder.workOrderProjectNo != ''"> and work_order_project_no = #{workOrder.workOrderProjectNo}</if>
|
|
<if test="workOrder.workOrderProjectNo != null and workOrder.workOrderProjectNo != ''"> and work_order_project_no = #{workOrder.workOrderProjectNo}</if>
|
|
|
<if test="workOrder.workOrderStatus != null and workOrder.workOrderStatus != ''"> and work_order_status in
|
|
<if test="workOrder.workOrderStatus != null and workOrder.workOrderStatus != ''"> and work_order_status in
|
|
@@ -408,6 +409,7 @@
|
|
|
<if test="workOrder.teamLeaderName != null and workOrder.teamLeaderName != ''"> and team_leader_name like concat('%', #{workOrder.teamLeaderName}, '%')</if>
|
|
<if test="workOrder.teamLeaderName != null and workOrder.teamLeaderName != ''"> and team_leader_name like concat('%', #{workOrder.teamLeaderName}, '%')</if>
|
|
|
<if test="workOrder.scoringStatus != null"> and scoring_status = #{workOrder.scoringStatus}</if>
|
|
<if test="workOrder.scoringStatus != null"> and scoring_status = #{workOrder.scoringStatus}</if>
|
|
|
<if test="workOrder.orderType != null and workOrder.orderType != ''"> and 2 = #{workOrder.orderType}</if>
|
|
<if test="workOrder.orderType != null and workOrder.orderType != ''"> and 2 = #{workOrder.orderType}</if>
|
|
|
|
|
+ <if test="workOrder.workPermitNum != null and workOrder.workPermitNum != ''"> and work_permit_num = #{workOrder.workPermitNum}</if>
|
|
|
<!-- 超时工单条件:accept_time为空,并且当前时间超过assign_time并且超过时间大于配置值 -->
|
|
<!-- 超时工单条件:accept_time为空,并且当前时间超过assign_time并且超过时间大于配置值 -->
|
|
|
<if test="workOrder.params.overdueCondition != null and workOrder.params.overdueCondition == 'overdue'">
|
|
<if test="workOrder.params.overdueCondition != null and workOrder.params.overdueCondition == 'overdue'">
|
|
|
and work_order_status = 'assigned'
|
|
and work_order_status = 'assigned'
|