Kaynağa Gözat

app待处理工单数量

HD_wangm 5 ay önce
ebeveyn
işleme
7c7c736456

+ 21 - 4
ygtx-gxt/src/main/resources/mapper/gxt/GxtOrderScoreMapper.xml

@@ -124,7 +124,12 @@
                 <if test="repairOrder.pcsDeviceId != null"> and pcs_device_id = #{repairOrder.pcsDeviceId}</if>
                 <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 repairOrder.scoringStatus != ''"> and scoring_status = #{repairOrder.scoringStatus}</if>
+                <if test="repairOrder.scoringStatus != null and repairOrder.scoringStatus != ''"> and scoring_status in
+                    <foreach collection="repairOrder.scoringStatus.split(',')" item="status" open="(" close=")" separator=",">
+                        #{status}
+                    </foreach>
+                </if>
+
                 <if test="repairOrder.orderType != null and repairOrder.orderType != ''"> and 1 = #{repairOrder.orderType}</if>
                 and NULLIF(scoring_status, '') IS NOT NULL
                 <!-- 业务特定数据权限过滤条件 -->
@@ -199,7 +204,11 @@
                 <if test="workOrder.pcsDeviceId != null"> and pcs_device_id = #{workOrder.pcsDeviceId}</if>
                 <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 workOrder.scoringStatus != ''"> and scoring_status = #{workOrder.scoringStatus}</if>
+                <if test="workOrder.scoringStatus != null and workOrder.scoringStatus != ''"> and scoring_status in
+                    <foreach collection="workOrder.scoringStatus.split(',')" item="status" open="(" close=")" separator=",">
+                        #{status}
+                    </foreach>
+                </if>
                 <if test="workOrder.orderType != null and workOrder.orderType != ''"> and 2 = #{workOrder.orderType}</if>
                 and NULLIF(scoring_status, '') IS NOT NULL
                 <!-- 业务特定数据权限过滤条件 -->
@@ -269,7 +278,11 @@
                 and (work_order_project_no like concat('%', #{keyword}, '%') or pcs_device_name like concat('%', #{keyword}, '%'))
             </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 = #{repairOrder.workOrderStatus}</if>
+            <if test="repairOrder.workOrderStatus != null and repairOrder.workOrderStatus != ''"> and work_order_status in
+                <foreach collection="repairOrder.workOrderStatus.split(',')" item="status" open="(" close=")" separator=",">
+                    #{status}
+                </foreach>
+            </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>
             <if test="repairOrder.pcsStationId != null"> and pcs_station_id = #{repairOrder.pcsStationId}</if>
@@ -343,7 +356,11 @@
                 and (work_order_project_no like concat('%', #{keyword}, '%') or pcs_device_name like concat('%', #{keyword}, '%'))
             </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 = #{workOrder.workOrderStatus}</if>
+            <if test="workOrder.workOrderStatus != null and workOrder.workOrderStatus != ''"> and work_order_status in
+                <foreach collection="workOrder.workOrderStatus.split(',')" item="status" open="(" close=")" separator=",">
+                    #{status}
+                </foreach>
+            </if>
             <if test="workOrder.gxtCenterId != null"> and gxt_center_id = #{workOrder.gxtCenterId}</if>
             <if test="workOrder.gxtCenter != null and workOrder.gxtCenter != ''"> and gxt_center = #{workOrder.gxtCenter}</if>
             <if test="workOrder.pcsStationId != null"> and pcs_station_id = #{workOrder.pcsStationId}</if>