From 288d78f66ecd1b628e8d1df7a3da99fc5e6880ec Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期五, 08 十二月 2023 14:13:37 +0800
Subject: [PATCH] debug

---
 model/dashboard.go |   37 +++++++++++++++++++------------------
 1 files changed, 19 insertions(+), 18 deletions(-)

diff --git a/model/dashboard.go b/model/dashboard.go
index 105cf3c..436e2db 100644
--- a/model/dashboard.go
+++ b/model/dashboard.go
@@ -9,23 +9,24 @@
 
 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   //杩戜竴鍛ㄥ伐鍗曞畬鎴愮巼
+		CommonModel
+		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:"-"` //璁惧璐熻嵎瀵规瘮鍒嗘瀽
@@ -232,7 +233,7 @@
 	return nil
 }
 
-func (slf *DashboardSearch) Updates(record *Dashboard) error {
+func (slf *DashboardSearch) Save(record *Dashboard) error {
 	var db = slf.build()
 
 	if err := db.Save(record).Error; err != nil {

--
Gitblit v1.8.0