fix
zhangqian
2023-11-27 f420004100c89f78aeef20a23a09c40e920b7ccf
model/report_work.go
@@ -10,12 +10,11 @@
   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"` //报工数量
@@ -103,11 +102,6 @@
func (slf *ReportWorkSearch) SetChannels(channels []int32) *ReportWorkSearch {
   slf.Channels = channels
   return slf
}
func (slf *ReportWorkSearch) SetChannel(channel int32) *ReportWorkSearch {
   slf.Channel = channel
   return slf
}