From f73f610cdf4b0666dc139a51e72353b88f8f25ab Mon Sep 17 00:00:00 2001
From: zhangzengfei <zhangzengfei@smartai.com>
Date: 星期四, 19 十月 2023 17:27:17 +0800
Subject: [PATCH] 为保证正确获取集群状态, 添加程序启动时读取system-service运行状态
---
model/work_order.go | 22 +++++++++++-----------
1 files changed, 11 insertions(+), 11 deletions(-)
diff --git a/model/work_order.go b/model/work_order.go
index 8dc4507..b854461 100644
--- a/model/work_order.go
+++ b/model/work_order.go
@@ -10,18 +10,18 @@
type (
Order struct {
gorm.Model
- WorkOrderID string `gorm:"index;type:varchar(191);not null;comment:'宸ュ崟ID'" json:"workOrderId"`
- OrderID string `gorm:"index;type:varchar(191);not null;comment:'璁㈠崟ID'" json:"orderId"`
- ProductID string `gorm:"type:varchar(191);comment:'浜у搧ID'" json:"productId"`
- ProductName string `gorm:"type:varchar(191);comment:'浜у搧鍚嶇О'" json:"productName"`
- Parameter string `gorm:"type:varchar(1024);comment:'鍙傛暟闇�姹�'" json:"parameter"`
- Customer string `gorm:"type:varchar(191);comment:'瀹㈡埛缂栫爜'" json:"customer"`
- DeliverDate string `gorm:"type:varchar(100);comment:'浜よ揣鏃ユ湡'" json:"deliverDate"`
+ WorkOrderID string `gorm:"index;type:varchar(191);not null" json:"workOrderId"`
+ OrderID string `gorm:"index;type:varchar(191);not null" json:"orderId"`
+ ProductID string `gorm:"type:varchar(191)" json:"productId"`
+ ProductName string `gorm:"type:varchar(191)" json:"productName"`
+ Parameter string `gorm:"type:varchar(1024)" json:"parameter"`
+ Customer string `gorm:"type:varchar(191)" json:"customer"`
+ DeliverDate string `gorm:"type:varchar(100)" json:"deliverDate"`
OrderAttr string `json:"orderAttr"` // 璁㈠崟灞炴�ф嫾鎺ョ殑瀛楃涓诧紝鍗宠揣鐗╂弿杩�
- Amount decimal.Decimal `gorm:"type:decimal(35,18);comment:'鏁伴噺'" json:"amount"`
- Unit string `gorm:"type:varchar(100);comment:'鍗曚綅'" json:"unit"`
- StartTime int64 `gorm:"comment:'璁″垝寮�濮嬫椂闂�'" json:"startTime"`
- EndTime int64 `gorm:"comment:'璁″垝缁撴潫鏃堕棿'" json:"endTime"`
+ Amount decimal.Decimal `gorm:"type:decimal(35,18)" json:"amount"`
+ Unit string `gorm:"type:varchar(100)" json:"unit"`
+ StartTime int64 `json:"startTime"`
+ EndTime int64 `json:"endTime"`
Status OrderStatus
}
--
Gitblit v1.8.0