From 1402ffaebc8363e6dcee3a4cb5610120b35a9384 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Fri, 7 Jan 2022 10:01:36 +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 12179ae..91e9438 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, ismtestok=True, is_deleted=False).count() + count_mtestok = WProduct.objects.filter(material=plan.product, is_mtestok=True, is_deleted=False).count() plan.count_mtestok = count_mtestok if count_mtestok >= plan.count: plan.state = ProductionPlan.PLAN_MTEST_DONE