From 262895d6e63c20e17231a451123108223df2abe0 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Tue, 4 Jan 2022 17:06:12 +0800 Subject: [PATCH] update_cutting_list_with_operation bug --- hb_server/apps/wpm/services.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hb_server/apps/wpm/services.py b/hb_server/apps/wpm/services.py index 72fbd10..dcff705 100644 --- a/hb_server/apps/wpm/services.py +++ b/hb_server/apps/wpm/services.py @@ -167,6 +167,8 @@ class WpmServies(object): for m in input_q: count_cut = count_cut + m.count from_batch = from_batch + ';' + m.batch if m.batch else from_batch + i.count_cut = count_cut + i.from_batch = from_batch wpfs = WproductFlow.objects.filter(subproduction_plan=i.subproduction_plan, is_lastlog=True, coperation=op)# 筛选本次操作下子计划的产品日志 i.count_real = wpfs.count()