From 66a85c70afb149986871febe17a4133b6995cd09 Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期四, 30 十一月 2023 19:58:02 +0800 Subject: [PATCH] dashboard接口和数据表 --- api/v1/task.go | 22 ++++++++++++---------- 1 files changed, 12 insertions(+), 10 deletions(-) diff --git a/api/v1/task.go b/api/v1/task.go index f866127..f9741cb 100644 --- a/api/v1/task.go +++ b/api/v1/task.go @@ -228,11 +228,12 @@ return err } record := model.TaskStatusSync{ - WorkOrderId: procedure.WorkOrderID, - ProcedureID: procedure.ProcedureID, - DeviceId: procedure.DeviceID, - IsProcessing: false, - IsFinish: true, + WorkOrderId: procedure.WorkOrderID, + ProcedureID: procedure.ProcedureID, + DeviceId: procedure.DeviceID, + ProductProcedureID: procedure.ProductProcedureID, + IsProcessing: false, + IsFinish: true, } return service.NewTaskService().SaveTaskStatusSync(db, &record) }) @@ -331,11 +332,12 @@ return err } record := model.TaskStatusSync{ - WorkOrderId: procedure.WorkOrderID, - ProcedureID: procedure.ProcedureID, - DeviceId: procedure.DeviceID, - IsProcessing: true, - IsFinish: false, + WorkOrderId: procedure.WorkOrderID, + ProcedureID: procedure.ProcedureID, + DeviceId: procedure.DeviceID, + ProductProcedureID: procedure.ProductProcedureID, + IsProcessing: true, + IsFinish: false, } return service.NewTaskService().SaveTaskStatusSync(db, &record) }) -- Gitblit v1.8.0