waybill_task.go 1.3 KB

1234567891011121314151617181920212223242526272829
  1. package model
  2. import (
  3. model2 "cold-logistics/common/model"
  4. "cold-logistics/common/nats/nats_server"
  5. )
  6. // 运单任务
  7. type WaybillTask struct {
  8. model2.Model
  9. WaybillNo string `json:"waybillNo" gorm:"size:128"` // 单号
  10. WarehouseId int `json:"warehouseId" gorm:"size:128"` // 仓库id
  11. CarId int `json:"carId" gorm:"size:128"` // 仓库id
  12. UserId int `json:"userId" gorm:"size:128"` // 司机/仓管id
  13. Sn string `json:"sn" gorm:"size:128"` // sn
  14. StartTime model2.Time `json:"startTime" gorm:"size:128"` // 签收时间
  15. EndTime model2.Time `json:"endTime" gorm:"size:128"` // 签收时间
  16. Warehouse WarehouseOmit `json:"warehouse"`
  17. Car CarOmit `json:"car"`
  18. DeviceSensorList []nats_server.DeviceSensor_R `json:"deviceSensorList,omitempty" gorm:"-"` // 传感器列表
  19. DataList []nats_server.DeviceData_R `json:"dataList,omitempty" gorm:"-"` // 传感器列表
  20. model2.ControlBy
  21. model2.ModelTime
  22. model2.DeptBy
  23. }
  24. func (WaybillTask) TableName() string {
  25. return "waybill_task"
  26. }