zhangqian
2023-10-13 f838162ed0ee7f2832924c2399eddd461760135a
model/production_progress.go
@@ -9,13 +9,13 @@
type (
   ProductionProgress 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"`
      ProcedureID      string `gorm:"type:varchar(191);comment:工序ID" json:"procedureId"`
      DeviceID         string `gorm:"type:varchar(191);not null;comment:设备ID" json:"deviceId"`
      FinishedQuantity int64  `gorm:"type:int;not null;comment:完成数量" json:"finishedQuantity"`
      Channel          int32  `gorm:"type:int;comment:工作通道" json:"channel"` //通道
      TotalQuantity    int64  `gorm:"type:int;not null;comment:总量" json:"totalQuantity"`
      WorkOrderID      string `gorm:"index;type:varchar(191);not null" json:"workOrderID"`
      OrderID          string `gorm:"index;type:varchar(191);not null" json:"orderID"`
      ProcedureID      string `gorm:"type:varchar(191)" json:"procedureId"`
      DeviceID         string `gorm:"type:varchar(191);not null" json:"deviceId"`
      FinishedQuantity int64  `gorm:"type:int;not null" json:"finishedQuantity"`
      Channel          int32  `gorm:"type:int" json:"channel"` //通道
      TotalQuantity    int64  `gorm:"type:int;not null" json:"totalQuantity"`
   }
   ProductionProgressSearch struct {