军检mtest接口bug

This commit is contained in:
caoqianming 2021-12-07 08:47:09 +08:00
parent 16aa96e305
commit 03437e1e4d
1 changed files with 1 additions and 0 deletions

View File

@ -201,6 +201,7 @@ class SaleProductViewSet(ListModelMixin, DestroyModelMixin, CreateModelMixin, Ge
if obj.is_mtested:
raise exceptions.APIException('已进行军检')
obj.remark = request.data.get('remark', None)
obj.is_mtested = True
obj.is_mtestok = request.data.get('is_mtestok')
obj.save()
return Response()