diff --git a/hb_server/apps/wpm/views.py b/hb_server/apps/wpm/views.py index 012b103..9f8c6f7 100644 --- a/hb_server/apps/wpm/views.py +++ b/hb_server/apps/wpm/views.py @@ -202,8 +202,8 @@ class WProductViewSet(ListModelMixin, RetrieveModelMixin, GenericViewSet): step=wproduct.step, form=form) if wproduct.act_state == WProduct.WPR_ACT_STATE_TORETEST: - # 查找最近一条检验记录 - trs = wproduct.last_wp_test + # 查找最近一条工序检验记录 + trs = wproduct.last_process_test savedict['origin_test'] = trs if not trs: raise exceptions.APIException('原工序检验记录不存在')