zhangqian
2023-11-27 dcf393c077af5638ea12c05dd6e1754fa535be20
model/report_work.go
@@ -9,20 +9,21 @@
type (
   ReportWork struct {
      gorm.Model
      ProceduresID uint   `gorm:"index;type:varchar(191)" json:"proceduresId"` //procedures表的id
      WorkOrderID  string `gorm:"index;type:varchar(191);not null" 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"` //报工数量
      FinishAmount int    `json:"finishAmount"` //本次报工 - 上次报工
      WorkerID     string `json:"workerID"`     //报工人id
      WorkerName   string `json:"workerName"`   //报工人姓名
      WorkerTime   int64  `json:"workerTime"`   //工时,单位秒
      BarCode      string `json:"barCode"`      //条形码
      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"`
      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"` //报工数量
      FinishAmount       int    `json:"finishAmount"` //本次报工 - 上次报工
      WorkerID           string `json:"workerID"`     //报工人id
      WorkerName         string `json:"workerName"`   //报工人姓名
      WorkerTime         int64  `json:"workerTime"`   //工时,单位秒
      BarCode            string `json:"barCode"`      //条形码
   }
   ReportWorkSearch struct {