This commit is contained in:
邹宗楠
2023-02-02 13:01:28 +08:00
parent 804d5e16d3
commit a7b9bdee61

View File

@@ -48,6 +48,7 @@ func (s *DefScheduler) SelfDeliveringAndUpdateStatus(ctx *jxcontext.Context, ven
} else {
if order.Status < model.OrderStatusDelivering {
err = s.Swtich2SelfDeliver(order, userName)
globals.SugarLogger.Debugf("====================err %v", err)
} else if order.VendorID == order.WaybillVendorID { // 状态为配送中,且是购物平台运单,不能转自送了
err = scheduler.ErrOrderStatusIsNotSuitable4CurOperation
}