| | |
| | | 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 |
| | | } |
| | | |