From 0c12480ed3dc66ee61ede133b49e4cbf1bc6639f Mon Sep 17 00:00:00 2001 From: caoqianming Date: Fri, 12 Dec 2025 08:31:57 +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=5Fquantity2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/pm/services.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/pm/services.py b/apps/pm/services.py index 057f228c..b3485156 100644 --- a/apps/pm/services.py +++ b/apps/pm/services.py @@ -83,7 +83,7 @@ class PmService: # 返回各Route的任务数量/默认使用target_quantity - return {route.id: step_production.get(route.id, target_quantity) for route in route_qs} + return {route.id: step_production.get(route.id, target_quantity if route.material_out.id == target_materialId else 0) for route in route_qs} @classmethod def cal_real_task_count(cls, count: int, rate_list):