整理订单调整中对于DeliveryType相关的流程
This commit is contained in:
@@ -275,3 +275,13 @@ func IsOrderHaveWaybill(order *GoodsOrder) bool {
|
||||
func IsOrderHaveOwnWaybill(order *GoodsOrder) bool {
|
||||
return order.VendorID == order.WaybillVendorID && order.VendorWaybillID != ""
|
||||
}
|
||||
|
||||
// 订单的初始配送方式是否是门店自配送
|
||||
func IsOrderDeliveryByStore(order *GoodsOrder) bool {
|
||||
return order.DeliveryType == OrderDeliveryTypeStoreSelf
|
||||
}
|
||||
|
||||
// 订单的初始配送方式是否是平台负责配送
|
||||
func IsOrderDeliveryByPlatform(order *GoodsOrder) bool {
|
||||
return order.DeliveryType == OrderDeliveryTypePlatform
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user