feat: cal_x_task_count默认使用target_quantity2

This commit is contained in:
caoqianming 2025-12-12 08:33:57 +08:00
parent ddd75d408a
commit e607dfd51b
1 changed files with 2 additions and 2 deletions

View File

@ -82,8 +82,8 @@ class PmService:
queue.append(input_material_id) queue.append(input_material_id)
# 返回各Route的任务数量/默认使用target_quantity # 返回各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_in.id == target_materialId else 0) for route in route_qs}
@classmethod @classmethod
def cal_real_task_count(cls, count: int, rate_list): def cal_real_task_count(cls, count: int, rate_list):