express_order.go 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. package models
  2. // ExpressOrder 快递单表
  3. type ExpressOrder struct {
  4. Id int `gorm:"column:id" json:"id"` //
  5. CreatedTime MyTime `gorm:"column:created_time" json:"createdTime"` //创建时间
  6. CreatedBy int `gorm:"column:created_by" json:"createdBy"` //创建人
  7. UpdatedTime MyTime `gorm:"column:updated_time" json:"updatedTime"` //修改时间
  8. UpdatedBy int `gorm:"column:updated_by" json:"updatedBy"` //修改人
  9. DeletedTime MyTime `gorm:"column:deleted_time" json:"deletedTime"` //删除时间
  10. DeletedBy int `gorm:"column:deleted_by" json:"deletedBy"` //删除人
  11. Deleted int `gorm:"column:deleted" json:"deleted"` //是否删除 1-是 2-否
  12. Version int `gorm:"column:version" json:"version"` //版本号
  13. Pid int `gorm:"column:pid" json:"pid"` //公司ID
  14. OrderNo string `gorm:"column:order_no" json:"orderNo"` //单号
  15. LogisticId int `gorm:"column:logistic_id" json:"logisticId"` //物流公司Id
  16. OrderStatus int `gorm:"column:order_status" json:"orderStatus"` //订单状态:101-待处理;102-待装车 103-运输中 104-已签收
  17. SenderAddressId int `gorm:"column:sender_address_id" json:"senderAddressId"` //发货地址Id
  18. ConsigneeAddressId int `gorm:"column:consignee_address_id" json:"consigneeAddressId"` //收货地址id
  19. CargoType string `gorm:"column:cargo_type" json:"cargoType"` //货物类型
  20. TemperatureInterval string `gorm:"column:temperature_interval" json:"temperatureInterval"` //温度区间
  21. CargoNumber int `gorm:"column:cargo_number" json:"cargoNumber"` //货物数量
  22. NumberUnit string `gorm:"column:number_unit" json:"numberUnit"` //计量单位
  23. DeliveryCondition string `gorm:"column:delivery_condition" json:"deliveryCondition"` //配送要求
  24. DeliveryRemark string `gorm:"column:delivery_remark" json:"deliveryRemark"` //运输备注
  25. TimeLimit int `gorm:"column:time_limit" json:"timeLimit"` //时效
  26. PickupTime MyTime `gorm:"column:pickup_time" json:"pickupTime"` //取货时间
  27. IsWeekendPickup int `gorm:"column:is_weekend_pickup" json:"isWeekendPickup"` //周末是否取货:1-是 2-否
  28. IsInsuredValue int `gorm:"column:is_insured_value" json:"isInsuredValue"` //是否保价
  29. Freight int `gorm:"column:freight" json:"freight"` //运费
  30. LatestLogId int `gorm:"column:latest_log_id" json:"latestLogId"` //最近一次定位
  31. LatestTaskId int `gorm:"column:latest_task_id" json:"latestTaskId"` //任务Id
  32. SignReceiptTime MyTime `gorm:"column:sign_receipt_time" json:"signReceiptTime"` //签收时间
  33. SignReceiptBy int `gorm:"column:sign_receipt_by" json:"signReceiptBy"` //签收人账号ID
  34. }
  35. func (*ExpressOrder) TableName() string {
  36. return "express_order"
  37. }