From ef46ddf7abf7e8e5bda9e7a0927913d34bacc486 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Fri, 7 Jan 2022 09:52:56 +0800 Subject: [PATCH] update_plan_state_by_mtestok bug --- hb_server/apps/wpm/services.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hb_server/apps/wpm/services.py b/hb_server/apps/wpm/services.py index 1cc1b26..12179ae 100644 --- a/hb_server/apps/wpm/services.py +++ b/hb_server/apps/wpm/services.py @@ -126,7 +126,7 @@ class WpmServies(object): 根据军检结果更新主计划状态 """ # 计算计划军检合格数并进行状态变更 - count_mtestok = WProduct.objects.filter(material=plan.product, iproduct_wproduct__ismtestok=True, is_deleted=False).count() + count_mtestok = WProduct.objects.filter(material=plan.product, ismtestok=True, is_deleted=False).count() plan.count_mtestok = count_mtestok if count_mtestok >= plan.count: plan.state = ProductionPlan.PLAN_MTEST_DONE