修改取消订单

This commit is contained in:
邹宗楠
2022-03-09 15:51:05 +08:00
parent ca62a02bdd
commit c7ecf8566c
2 changed files with 2 additions and 3 deletions

View File

@@ -955,9 +955,8 @@ func (s *DefScheduler) solutionJdsOrder(bill *model.Waybill) (err error) {
func (s *DefScheduler) cancelOtherWaybills(savedOrderInfo *WatchOrderInfo, bill2Keep *model.Waybill, cancelReasonID int, cancelReason string) (err error) {
globals.SugarLogger.Debugf("cancelOtherWaybills, orderID:%s, bill:%v", savedOrderInfo.order.VendorOrderID, bill2Keep)
for _, v := range savedOrderInfo.waybills {
cc := !model.IsWaybillPlatformOwn(v)
if v.Status < model.WaybillStatusEndBegin &&
cc &&
!model.IsWaybillPlatformOwn(v) &&
(bill2Keep == nil || !(v.WaybillVendorID == bill2Keep.WaybillVendorID && v.VendorWaybillID == bill2Keep.VendorWaybillID)) {
err2 := s.CancelWaybill(v, cancelReasonID, cancelReason)