From 12895757acd5d507eef575ea7ad47080c2b57746 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Fri, 19 Nov 2021 11:08:09 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BD=A6=E9=97=B4=E6=93=8D=E4=BD=9C=E5=88=9B?= =?UTF-8?q?=E5=BB=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hb_server/apps/wpm/views.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hb_server/apps/wpm/views.py b/hb_server/apps/wpm/views.py index b496ebd..1e4d2c8 100644 --- a/hb_server/apps/wpm/views.py +++ b/hb_server/apps/wpm/views.py @@ -313,13 +313,15 @@ class OperationViewSet(ListModelMixin, RetrieveModelMixin, CreateModelMixin, Gen opr.is_filled = False opr.save() # 查询需要使用的生产设备 - equips = step.equipements + equips = step.equipments for i in equips: ope = OperationEquip() ope.operation = op ope.equip = i ope.save() return Response() + +