| | |
| | | ReportWork struct { |
| | | gorm.Model |
| | | ProceduresID uint `gorm:"index;type:varchar(191)" json:"proceduresId"` //procedures表的id |
| | | ProductProcedureID string `gorm:"index;type:varchar(191);not null" json:"productProcedureID"` //产品工序id |
| | | WorkOrderID string `gorm:"index;type:varchar(191);not null" json:"workOrderId"` |
| | | ProductProcedureID string `gorm:"index;type:varchar(191);" json:"productProcedureID"` //产品工序id |
| | | WorkOrderID string `gorm:"index;type:varchar(191);" json:"workOrderId"` |
| | | DeviceID string `gorm:"index;type:varchar(191)" json:"deviceId"` |
| | | DeviceName string `gorm:"index;type:varchar(191)" json:"deviceName"` |
| | | ProcedureID string `gorm:"index;type:varchar(191)" json:"procedureId"` |
| | | Channel int32 `gorm:"index;" json:"channel"` //通道 |
| | | StartTime int64 `json:"startTime"` |
| | | EndTime int64 `json:"endTime"` |
| | | ReportAmount int `json:"reportAmount"` //报工数量 |
| | |
| | | |
| | | func (slf *ReportWorkSearch) SetChannels(channels []int32) *ReportWorkSearch { |
| | | slf.Channels = channels |
| | | return slf |
| | | } |
| | | |
| | | func (slf *ReportWorkSearch) SetChannel(channel int32) *ReportWorkSearch { |
| | | slf.Channel = channel |
| | | return slf |
| | | } |
| | | |