From 5e4d9f05035d1153ab191dd1cb0a4922b91983b2 Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期三, 11 十月 2023 14:36:37 +0800 Subject: [PATCH] debug --- 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 f92db69..8dc4507 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;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"` 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);comment:'鏁伴噺'" json:"amount"` + Unit string `gorm:"type:varchar(100);comment:'鍗曚綅'" json:"unit"` + StartTime int64 `gorm:"comment:'璁″垝寮�濮嬫椂闂�'" json:"startTime"` + EndTime int64 `gorm:"comment:'璁″垝缁撴潫鏃堕棿'" json:"endTime"` Status OrderStatus } -- Gitblit v1.8.0