- fixed load pending orders.

This commit is contained in:
gazebo
2018-07-25 11:19:23 +08:00
parent 38dc61a0bc
commit f3df85c8e0
4 changed files with 79 additions and 61 deletions

View File

@@ -1,5 +1,7 @@
package model
import "time"
func Order2Status(order *GoodsOrder) (retVal *OrderStatus) {
retVal = &OrderStatus{
VendorOrderID: order.VendorOrderID,
@@ -32,3 +34,11 @@ func Waybill2Status(bill *Waybill) (retVal *OrderStatus) {
func IsOrderSolid(order *GoodsOrder) bool {
return !(order.ConsigneeName == "" && order.ID == 0)
}
func (o *GoodsOrder) GetStatusTime() time.Time {
return o.StatusTime
}
func (o *Waybill) GetStatusTime() time.Time {
return o.StatusTime
}