zhangqian
2023-08-21 2c96bc009ce9b92049293949d563a80fca9cd6c8
model/common/common.go
@@ -35,16 +35,18 @@
   }
   ProductProcedure struct {
      ProcedureID     string               `gorm:"uniqueIndex:idx_product_procedure;type:varchar(191);comment:工序ID" json:"procedureId"`
      ProcedureName   string               `gorm:"type:varchar(191);comment:工序名称,仅查询用" json:"procedureName"`
      DeviceID        string               `gorm:"type:varchar(191);not null;comment:设备ID" json:"deviceId"`
      DeviceName      string               `gorm:"type:varchar(191);not null;comment:设备名称" json:"deviceName"`
      StartTime       int64                `gorm:"comment:计划开始时间" json:"startTime"`
      EndTime         int64                `gorm:"comment:计划结束时间" json:"endTime"`
      WorkHours       decimal.Decimal      `gorm:"type:decimal(35,18);comment:工时" json:"workHours"`
      InputMaterials  []*ProcedureMaterial `json:"inputMaterials"`  // 输入物料列表
      OutputMaterials []*ProcedureMaterial `json:"outputMaterials"` // 输出物料列表
      Workers         []*ProcedureWorker   `json:"workers"`         // 人员列表
      ProcedureID       string               `gorm:"uniqueIndex:idx_product_procedure;type:varchar(191);comment:工序ID" json:"procedureId"`
      ProcedureName     string               `gorm:"type:varchar(191);comment:工序名称,仅查询用" json:"procedureName"`
      NextProcedureID   string               `json:"nextProcedureId"`
      NextProcedureName string               `json:"nextProcedureName"`
      DeviceID          string               `gorm:"type:varchar(191);not null;comment:设备ID" json:"deviceId"`
      DeviceName        string               `json:"deviceName"`
      StartTime         int64                `gorm:"comment:计划开始时间" json:"startTime"`
      EndTime           int64                `gorm:"comment:计划结束时间" json:"endTime"`
      WorkHours         decimal.Decimal      `gorm:"type:decimal(35,18);comment:工时" json:"workHours"`
      InputMaterials    []*ProcedureMaterial `json:"inputMaterials"`  // 输入物料列表
      OutputMaterials   []*ProcedureMaterial `json:"outputMaterials"` // 输出物料列表
      Workers           []*ProcedureWorker   `json:"workers"`         // 人员列表
   }
   DeliverScheduleTask struct {