From 8bfcef5437e1c2b049fb94addf3d5e2ed9965458 Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期四, 07 十二月 2023 15:41:39 +0800
Subject: [PATCH] 增加字段
---
model/dashboard.go | 33 +++++++++++++++++----------------
test/task_test.go | 2 +-
2 files changed, 18 insertions(+), 17 deletions(-)
diff --git a/model/dashboard.go b/model/dashboard.go
index 2ec1856..bd6bdf8 100644
--- a/model/dashboard.go
+++ b/model/dashboard.go
@@ -10,22 +10,23 @@
type (
Dashboard struct {
gorm.Model
- Version string
- DeviceRunningAmount int //寮�鏈哄彴鏁�
- TotalProductionAmount int //鎬讳骇閲�
- WorkOrderAmount int64 //鐢熶骇宸ュ崟鏁�
- DelayWorkOrderAmount int64 //寤舵湡浜や粯宸ュ崟鏁�
- MaterialMissWorkOrderAmount int //鐗╂枡涓嶈冻宸ュ崟鏁�
- PlanOrderFinishRate int64 //璁″垝杈炬垚鐜�
- TotalDeviceAmount int64 //鎬昏澶囨暟
- InMaintenanceDeviceAmount int64 //缁翠慨涓澶囨暟
- InternalDeviceRunningAmount int //鑷湁寮�鏈哄彴鏁�
- ExternalDeviceRunningAmount int //澶栧姞宸ュ彴鏁�
- OutPlanProductionAmount int //璁″垝澶栧姞宸ユ暟
- PlanProductionAmount int //璁″垝鍔犲伐鏁�
- RealExternalProductionAmount int //瀹為檯澶栧姞宸ユ暟
- RealProductionAmount int //瀹為檯鐢熶骇鏁�
- WorkOrderFinishRate int //杩戜竴鍛ㄥ伐鍗曞畬鎴愮巼
+ Version string
+ DeviceRunningAmount int //寮�鏈哄彴鏁�
+ TotalProductionAmount int //鎬讳骇閲�
+ WorkOrderAmount int64 //鐢熶骇宸ュ崟鏁�
+ DelayWorkOrderAmount int64 //寤舵湡浜や粯宸ュ崟鏁�
+ MaterialMissWorkOrderAmount int //鐗╂枡涓嶈冻宸ュ崟鏁�
+ WaitSchedulingWorkOrderAmount int //寰呮帓绋嬪伐鍗曟暟(搴撳瓨鍏呰冻鏈攣瀹� 鍜� 宸查攣瀹氬簱瀛樻湭鎺掔▼鐨勫伐鍗�)
+ PlanOrderFinishRate int64 //璁″垝杈炬垚鐜�
+ TotalDeviceAmount int64 //鎬昏澶囨暟
+ InMaintenanceDeviceAmount int64 //缁翠慨涓澶囨暟
+ InternalDeviceRunningAmount int //鑷湁寮�鏈哄彴鏁�
+ ExternalDeviceRunningAmount int //澶栧姞宸ュ彴鏁�
+ OutPlanProductionAmount int //璁″垝澶栧姞宸ユ暟
+ PlanProductionAmount int //璁″垝鍔犲伐鏁�
+ RealExternalProductionAmount int //瀹為檯澶栧姞宸ユ暟
+ RealProductionAmount int //瀹為檯鐢熶骇鏁�
+ WorkOrderFinishRate int //杩戜竴鍛ㄥ伐鍗曞畬鎴愮巼
DeviceLoadData string //璁惧璐熻嵎瀵规瘮鍒嗘瀽
DeviceLoad []*CommonStats `gorm:"-"` //璁惧璐熻嵎瀵规瘮鍒嗘瀽
diff --git a/test/task_test.go b/test/task_test.go
index caa2a00..cc53685 100644
--- a/test/task_test.go
+++ b/test/task_test.go
@@ -13,7 +13,7 @@
func TestTaskStatusUpdate(t *testing.T) {
Init()
- procedureId := 1
+ procedureId := uint(1)
taskService := service.NewTaskService()
procedure, _ := taskService.GetProcedureById(procedureId)
msg := &common.MsgTaskStatusUpdate{
--
Gitblit v1.8.0