From 44522f2572692cace864195219ea94d58f88a79f Mon Sep 17 00:00:00 2001 From: risingLee <871066422@qq.com> Date: Tue, 30 Dec 2025 15:52:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BA=86=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E5=B7=A5=E5=8D=95=E7=BB=9F=E8=AE=A1=E7=9A=84=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../module_admin/system/service/statistics_service.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ruoyi-fastapi-backend/module_admin/system/service/statistics_service.py b/ruoyi-fastapi-backend/module_admin/system/service/statistics_service.py index cb27ed0..37a5f63 100644 --- a/ruoyi-fastapi-backend/module_admin/system/service/statistics_service.py +++ b/ruoyi-fastapi-backend/module_admin/system/service/statistics_service.py @@ -59,10 +59,10 @@ class StatisticsService: total_work_orders = len(all_work_orders) # 统计已完成测试工单数量(假设状态值2表示已完成) - completed_work_orders = len([work_order for work_order in all_work_orders if work_order['test_status'] == 2]) + completed_work_orders = len([work_order for work_order in all_work_orders if work_order.test_status == 2]) # 统计进行中测试工单数量(假设状态值1表示进行中) - processing_work_orders = len([work_order for work_order in all_work_orders if work_order['test_status'] == 1]) + processing_work_orders = len([work_order for work_order in all_work_orders if work_order.test_status == 1]) return { 'totalWorkOrders': total_work_orders,