| | |
| | | |
| | | // 排程任务下发 |
| | | type ( |
| | | Order struct { |
| | | WorkOrder struct { |
| | | WorkOrderID string `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"` |
| | |
| | | WorkerID string `gorm:"type:varchar(2048);comment:人员ID" json:"workerId"` |
| | | WorkerName string `gorm:"unique;type:varchar(191);not null;comment:人员姓名" json:"workerName"` |
| | | PhoneNum string `gorm:"type:varchar(191);comment:手机号" json:"phoneNum"` |
| | | StartTime int64 `gorm:"comment:开始时间" json:"startTime"` |
| | | EndTime int64 `gorm:"comment:结束时间" json:"endTime"` |
| | | } |
| | | |
| | | 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"` |
| | |
| | | } |
| | | |
| | | DeliverScheduleTask struct { |
| | | Order Order `json:"order"` |
| | | WorkOrder WorkOrder `json:"workOrder"` |
| | | Procedures []*ProductProcedure `json:"procedures"` // 工序列表 |
| | | } |
| | | ) |