waybill_logistics.go 1.0 KB

123456789101112131415161718192021222324
  1. package model
  2. import model2 "cold-logistics/common/model"
  3. // 运单物流
  4. type WaybillLogistics struct {
  5. model2.Model
  6. WaybillNo string `json:"waybillNo" gorm:"size:128"` // 单号
  7. Status int `json:"status" gorm:"size:128"` //订单状态:1待派单 2待装车 3待入库 4已装车 5已入库 6已下车 7已出库 8已签收
  8. WarehouseId int `json:"warehouseId" gorm:"size:128"` // 仓库id
  9. CarId int `json:"carId" gorm:"size:128"` // 仓库id
  10. UserId int `json:"userId" gorm:"size:128"` // 司机/仓管id
  11. Lng string `json:"lng" gorm:"size:128;"` // 经度
  12. Lat string `json:"lat" gorm:"size:128;"` // 纬度
  13. Warehouse WarehouseOmit `json:"warehouse" gorm:"->;foreignkey:WarehouseId;references:Id"`
  14. Car CarOmit `json:"car" gorm:"->;foreignkey:CarId;references:Id"`
  15. model2.ControlBy
  16. model2.ModelTime
  17. model2.DeptBy
  18. }
  19. func (WaybillLogistics) TableName() string {
  20. return "waybill_logistics"
  21. }