diff --git a/business/jxcallback/orderman/order.go b/business/jxcallback/orderman/order.go index 8621a8213..d7e7c2d78 100644 --- a/business/jxcallback/orderman/order.go +++ b/business/jxcallback/orderman/order.go @@ -259,7 +259,6 @@ func (c *OrderManager) OnOrderStatusChanged(vendorOrgCode string, orderStatus *m order.OrderFinishedAt = time.Now() dao.UpdateEntity(db, order, "OrderFinishedAt") } else if orderStatus.Status == model.OrderStatusCanceled { - globals.SugarLogger.Debugf("==============orderStatus := %s", utils.Format4Output(orderStatus, false)) order2, _ := c.LoadOrder(orderStatus.VendorOrderID, orderStatus.VendorID) // 订单被取消,则取消三方运单 if orderStatus.OrderType == model.OrderTypeOrder { waybill, _ := dao.GetWaybills(db, order2.VendorOrderID, []int64{model.VendorIDMTPS, model.VendorIDDada, model.VendorIDFengNiao, model.VendorIDUUPT, model.VendorIDSFPS}) @@ -276,10 +275,8 @@ func (c *OrderManager) OnOrderStatusChanged(vendorOrgCode string, orderStatus *m } // 判断是否需要打印取消订单 - storeDetail, errDetail := c.LoadStoreDetail(order2.StoreID, order2.VendorID) - globals.SugarLogger.Debugf("==============storeDetail := %s", utils.Format4Output(storeDetail, false)) + storeDetail, errDetail := c.LoadStoreDetail(order2.JxStoreID, order2.VendorID) if errDetail == nil && storeDetail.IsPrintCancelOrder == model.YES { // 取消申请 - globals.SugarLogger.Debugf("==============storeDetail := %s , %d", utils.Format4Output(order2.VendorOrderID, false), order2.StoreID) _, err = netprinter.PrintRefundOrCancelOrder(jxcontext.AdminCtx, model.YES, order2, order2.StoreID) } if err != nil {