京东商城订单
This commit is contained in:
@@ -1,12 +1,13 @@
|
|||||||
package defsch
|
package defsch
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"git.rosy.net.cn/jx-callback/business/jxutils/unipush"
|
|
||||||
"fmt"
|
"fmt"
|
||||||
"math/rand"
|
"math/rand"
|
||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
push "git.rosy.net.cn/jx-callback/business/jxutils/unipush"
|
||||||
|
|
||||||
"github.com/astaxie/beego"
|
"github.com/astaxie/beego"
|
||||||
|
|
||||||
"git.rosy.net.cn/jx-callback/business/jxstore/cms"
|
"git.rosy.net.cn/jx-callback/business/jxstore/cms"
|
||||||
@@ -834,14 +835,14 @@ func (s *DefScheduler) cancelOtherWaybillsCheckOrderDeliveryFlag(savedOrderInfo
|
|||||||
func (s *DefScheduler) solutionJdsOrder(bill *model.Waybill) (err error) {
|
func (s *DefScheduler) solutionJdsOrder(bill *model.Waybill) (err error) {
|
||||||
if len(bill.VendorOrderID) > 12 {
|
if len(bill.VendorOrderID) > 12 {
|
||||||
//表示此订单是京东商城2次转移的订单,不用出库,但要去修改运单号
|
//表示此订单是京东商城2次转移的订单,不用出库,但要去修改运单号
|
||||||
if utils.Str2Int(bill.VendorOrderID[12:len(bill.VendorOrderID)]) > 2 {
|
// if utils.Str2Int(bill.VendorOrderID[12:len(bill.VendorOrderID)]) > 2 {
|
||||||
err = jdshop.CurPurchaseHandler.OrderTransfer(jxcontext.AdminCtx, bill.VendorOrderID, bill.VendorWaybillID, true)
|
// err = jdshop.CurPurchaseHandler.OrderTransfer(jxcontext.AdminCtx, bill.VendorOrderID, bill.VendorWaybillID, true)
|
||||||
if err != nil {
|
// if err != nil {
|
||||||
globals.SugarLogger.Errorf("京东商城订单自动转移失败!", err)
|
// globals.SugarLogger.Errorf("京东商城订单自动转移失败!", err)
|
||||||
}
|
// }
|
||||||
} else {
|
// } else {
|
||||||
err = jdshop.CurPurchaseHandler.OrderExport(jxcontext.AdminCtx, bill.VendorOrderID, bill.VendorWaybillID, true)
|
err = jdshop.CurPurchaseHandler.OrderExport(jxcontext.AdminCtx, bill.VendorOrderID, bill.VendorWaybillID, true)
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user