京东商城出库修改
This commit is contained in:
@@ -763,9 +763,9 @@ 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 {
|
||||||
if utils.Str2Int(bill.VendorOrderID[12:len(bill.VendorOrderID)]) > 1 {
|
//表示此订单是京东商城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)
|
||||||
|
|||||||
@@ -30,6 +30,13 @@ func (c *DeliveryHandler) GetVendorID() int {
|
|||||||
return model.VendorIDJDWL
|
return model.VendorIDJDWL
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func OnWaybillMsg() {
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *DeliveryHandler) OnWaybillMsg() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
func (c *DeliveryHandler) CreateStore(ctx *jxcontext.Context, storeDetail *dao.StoreDetail2) (vendorStoreID string, status int, err error) {
|
func (c *DeliveryHandler) CreateStore(ctx *jxcontext.Context, storeDetail *dao.StoreDetail2) (vendorStoreID string, status int, err error) {
|
||||||
return vendorStoreID, status, err
|
return vendorStoreID, status, err
|
||||||
}
|
}
|
||||||
@@ -94,7 +101,3 @@ func (c *DeliveryHandler) GetWaybillFee(order *model.GoodsOrder) (deliveryFeeInf
|
|||||||
func (c *DeliveryHandler) ComplaintRider(bill *model.Waybill, resonID int, resonContent string) (err error) {
|
func (c *DeliveryHandler) ComplaintRider(bill *model.Waybill, resonID int, resonContent string) (err error) {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *DeliveryHandler) OnWaybillMsg() {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -167,7 +167,7 @@ func (p *PurchaseHandler) OrderTransfer(ctx *jxcontext.Context, vendorOrderID, v
|
|||||||
if !isAuto {
|
if !isAuto {
|
||||||
companyID = jdshopapi.JdsDeliveryCompanyJD
|
companyID = jdshopapi.JdsDeliveryCompanyJD
|
||||||
}
|
}
|
||||||
err = api.JdShopAPI.UpdateWaybill(vendorOrderID[:12], companyID, vendorWaybillID)
|
err = api.JdShopAPI.UpdateWaybill(vendorOrderID[:12], companyID, vendorOrderID)
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user