From 13d33488dc21aafedb6771c568c84002e498a1f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=83=A1=E5=B0=A7?= Date: Fri, 20 Jun 2025 15:39:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=AE=A1=E5=88=92=E9=87=8F?= =?UTF-8?q?=E5=AD=97=E6=AE=B5=E4=B8=BA=C2=96qty=5Fproduction?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sf_machine_connect/controllers/controllers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sf_machine_connect/controllers/controllers.py b/sf_machine_connect/controllers/controllers.py index 78202ea6..4974127e 100644 --- a/sf_machine_connect/controllers/controllers.py +++ b/sf_machine_connect/controllers/controllers.py @@ -437,7 +437,7 @@ class Sf_Dashboard_Connect(http.Controller): ('state', 'in', ['ready', 'progress', 'done']) ]) - plan_data_total_counts = sum(plan_data_total.mapped('qty_produced')) + plan_data_total_counts = sum(plan_data_total.mapped('qty_production')) # # 工单完成量 # plan_data_finish_counts = plan_obj.search_count( @@ -717,7 +717,7 @@ class Sf_Dashboard_Connect(http.Controller): # 使用小时和分钟作为键,确保每个小时的数据有独立的键 key = start_time.strftime('%H:%M:%S') # 只取小时:分钟:秒作为键 # time_count_dict[key] = len(orders) - plan_count_dict[key] = sum(interval_orders.mapped('qty_produced')) + plan_count_dict[key] = sum(interval_orders.mapped('qty_production')) # order_counts.append() res['data'][line] = {