From d36edaffe1f85b342fa7778da179914302101ad9 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Thu, 11 Dec 2025 16:49:59 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20cal=5Fx=5Ftask=5Fcount=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E4=BD=BF=E7=94=A8target=5Fquantity?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/pm/services.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/pm/services.py b/apps/pm/services.py index aeb33821..057f228c 100644 --- a/apps/pm/services.py +++ b/apps/pm/services.py @@ -82,8 +82,8 @@ class PmService: queue.append(input_material_id) - # 返回各Route的任务数量 - return {route.id: step_production.get(route.id, 0) for route in route_qs} + # 返回各Route的任务数量/默认使用target_quantity + return {route.id: step_production.get(route.id, target_quantity) for route in route_qs} @classmethod def cal_real_task_count(cls, count: int, rate_list):