|
|
@@ -112,7 +112,7 @@
|
|
|
update_time as update_time
|
|
|
FROM gxt_repair_order t
|
|
|
<where>
|
|
|
- <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 like concat('%', #{repairOrder.workOrderProjectNo}, '%')</if>
|
|
|
<if test="repairOrder.workOrderStatus != null and repairOrder.workOrderStatus != ''"> and work_order_status = #{repairOrder.workOrderStatus}</if>
|
|
|
<if test="repairOrder.gxtCenterId != null"> and gxt_center_id = #{repairOrder.gxtCenterId}</if>
|
|
|
<if test="repairOrder.gxtCenter != null and repairOrder.gxtCenter != ''"> and gxt_center = #{repairOrder.gxtCenter}</if>
|
|
|
@@ -122,6 +122,7 @@
|
|
|
<if test="repairOrder.pcsDeviceName != null and repairOrder.pcsDeviceName != ''"> and pcs_device_name like concat('%', #{repairOrder.pcsDeviceName}, '%')</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.orderType != null and repairOrder.orderType != ''"> and 1 = #{repairOrder.orderType}</if>
|
|
|
and NULLIF(scoring_status, '') IS NOT NULL
|
|
|
<!-- 业务特定数据权限过滤条件 -->
|
|
|
<if test="repairOrder.params.businessDataScope != null and repairOrder.params.businessDataScope != ''">
|
|
|
@@ -193,6 +194,7 @@
|
|
|
<if test="workOrder.pcsDeviceName != null and workOrder.pcsDeviceName != ''"> and pcs_device_name like concat('%', #{workOrder.pcsDeviceName}, '%')</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.orderType != null and workOrder.orderType != ''"> and 2 = #{workOrder.orderType}</if>
|
|
|
and NULLIF(scoring_status, '') IS NOT NULL
|
|
|
<!-- 业务特定数据权限过滤条件 -->
|
|
|
<if test="workOrder.params.businessDataScope != null and workOrder.params.businessDataScope != ''">
|
|
|
@@ -269,6 +271,7 @@
|
|
|
<if test="repairOrder.pcsDeviceName != null and repairOrder.pcsDeviceName != ''"> and pcs_device_name like concat('%', #{repairOrder.pcsDeviceName}, '%')</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.orderType != null and repairOrder.orderType != ''"> and 1 = #{repairOrder.orderType}</if>
|
|
|
<!-- 业务特定数据权限过滤条件 -->
|
|
|
<if test="repairOrder.params.businessDataScope != null and repairOrder.params.businessDataScope != ''">
|
|
|
${repairOrder.params.businessDataScope}
|
|
|
@@ -342,6 +345,7 @@
|
|
|
<if test="workOrder.pcsDeviceName != null and workOrder.pcsDeviceName != ''"> and pcs_device_name like concat('%', #{workOrder.pcsDeviceName}, '%')</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.orderType != null and workOrder.orderType != ''"> and 2 = #{workOrder.orderType}</if>
|
|
|
<!-- 业务特定数据权限过滤条件 -->
|
|
|
<if test="workOrder.params.businessDataScope != null and workOrder.params.businessDataScope != ''">
|
|
|
${workOrder.params.businessDataScope}
|