This commit is contained in:
richboo111
2022-12-27 17:19:32 +08:00
parent 81846cbb88
commit 08b9487972
2 changed files with 3 additions and 2 deletions

View File

@@ -1005,6 +1005,7 @@ 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("savedOrderInfo.waybills=======%s,len(savedOrderInfo.waybills)====%d", utils.Format4Output(savedOrderInfo.waybills, false), len(savedOrderInfo.waybills))
for _, v := range savedOrderInfo.waybills {
globals.SugarLogger.Debugf("我在这里")
if v.Status < model.WaybillStatusEndBegin &&
@@ -1027,7 +1028,7 @@ func (s *DefScheduler) cancelOtherWaybills(savedOrderInfo *WatchOrderInfo, bill2
}
}
globals.SugarLogger.Debugf("cancelOtherWaybills last err=========%s", err)
globals.SugarLogger.Debugf("cancelOtherWaybills last err=========%v", err)
return err
}