修复工件配送时间

This commit is contained in:
jinling.yang
2024-04-26 14:44:26 +08:00
parent 50aae8a1e8
commit 8f9781dd13
3 changed files with 7 additions and 6 deletions

View File

@@ -31,7 +31,7 @@ class Workpiece(http.Controller):
[('production_id.name', '=', req_code.rsplit('-', 1)[0]),
('delivery_num', '=', req_code.strip())])
if workpiece_delivery:
workpiece_delivery.write({'status': '已配送', 'task_completion_time': ret['reqTime']})
workpiece_delivery.write({'status': '已配送', 'task_completion_time': datetime.now()})
else:
res = {'Succeed': False, 'ErrorCode': 203,
'Error': '该reqCode暂未查到对应的工件配送记录'}