warehouse_order.go 1.6 KB

123456789101112131415161718192021222324252627
  1. package models
  2. // WarehouseOrder 仓库订单
  3. type WarehouseOrder 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. WarehouseId int `gorm:"column:warehouse_id" json:"warehouseId"` //仓库Id
  13. SnCode string `gorm:"column:sn_code" json:"snCode"` //仓库SN编码
  14. OrderId int `gorm:"column:order_id" json:"orderId"` //订单id
  15. OrderNo string `gorm:"column:order_no" json:"orderNo"` //订单号
  16. Status int `gorm:"column:status" json:"status"` //状态:301-库中 302-已出库
  17. StorageTime MyTime `gorm:"column:storage_time" json:"storageTime"` //入库时间
  18. StorageBy int `gorm:"column:storage_by" json:"storageBy"` //入库人
  19. OutboundTime MyTime `gorm:"column:outbound_time" json:"outboundTime"` //出库时间
  20. OutboundBy int `gorm:"column:outbound_by" json:"outboundBy"` //出库人
  21. }
  22. func (*WarehouseOrder) TableName() string {
  23. return "warehouse_order"
  24. }