| | |
| | | "fmt" |
| | | "gorm.io/gorm" |
| | | "wms/constvar" |
| | | "wms/extend/util" |
| | | "wms/pkg/mysqlx" |
| | | ) |
| | | |
| | |
| | | FromLocation Location `json:"fromLocation" gorm:"foreignKey:FromLocationId"` //源位置 |
| | | ToLocationId int `json:"toLocationId" gorm:"type:int;not null;comment:目标位置id"` //目标位置id |
| | | ToLocation Location `json:"toLocation" gorm:"foreignKey:ToLocationId"` //目标位置 |
| | | OperationDate util.JSONTime `json:"operationDate" gorm:"comment:安排日期"` |
| | | OperationDate string `json:"operationDate" gorm:"type:varchar(31);comment:安排日期"` |
| | | CarrierID int `json:"carrierID" gorm:"type:int;comment:承运商ID"` |
| | | CarrierName string `json:"carrierName" gorm:"type:varchar(63);comment:承运商名称"` |
| | | Tracking string `json:"tracking" gorm:"type:varchar(127);comment:追踪参考"` |
| | |
| | | ) |
| | | |
| | | func (slf *Operation) TableName() string { |
| | | return "operation" |
| | | return "wms_operation" |
| | | } |
| | | |
| | | func NewOperationSearch() *OperationSearch { |