fk
This commit is contained in:
@@ -102,7 +102,7 @@ func (s *DefScheduler) isPossibleSwitch2SelfDelivery(order *model.GoodsOrder) (e
|
|||||||
if model.IsOrderHaveOwnWaybill(order) {
|
if model.IsOrderHaveOwnWaybill(order) {
|
||||||
err = fmt.Errorf("%s物流已在配送中,不能转自配送", jxutils.GetVendorName(order.VendorID))
|
err = fmt.Errorf("%s物流已在配送中,不能转自配送", jxutils.GetVendorName(order.VendorID))
|
||||||
}
|
}
|
||||||
} else {
|
} else if order.Status >= model.OrderStatusEndBegin {
|
||||||
err = fmt.Errorf("订单%s已经结束,请刷新状态", order.VendorOrderID)
|
err = fmt.Errorf("订单%s已经结束,请刷新状态", order.VendorOrderID)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user