zhangqian
2023-10-11 5e4d9f05035d1153ab191dd1cb0a4922b91983b2
debug
1个文件已修改
22 ■■■■ 已修改文件
model/work_order.go 22 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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
    }