diff --git a/business/partner/purchase/jx/localjx/order.go b/business/partner/purchase/jx/localjx/order.go index bcb5756b2..fbaf6a3be 100644 --- a/business/partner/purchase/jx/localjx/order.go +++ b/business/partner/purchase/jx/localjx/order.go @@ -937,10 +937,11 @@ func jxOrder2GoodsOrder(ctx *jxcontext.Context, jxOrder *JxOrderInfo, deliveryAd OrderSeq: 0, BuyerComment: jxOrder.BuyerComment, - DeliveryType: model.OrderDeliveryTypeStoreSelf, - StatusTime: time.Now(), - EarningType: jxOrder.EarningType, - OrderType: jxOrder.OrderType, + DeliveryType: model.OrderDeliveryTypeStoreSelf, + StatusTime: time.Now(), + EarningType: jxOrder.EarningType, + OrderType: jxOrder.OrderType, + VendorOrderID2: jxOrder.OrderID2, } if userID == "" { order.UserID = ctx.GetUserID() diff --git a/controllers/jx_order2.go b/controllers/jx_order2.go index 82103922f..275a3af2a 100644 --- a/controllers/jx_order2.go +++ b/controllers/jx_order2.go @@ -279,7 +279,7 @@ func (c *JxOrderController) GetMyPriceDefendOrders() { // @router /TestDefend [get] func (c *JxOrderController) TestDefend() { c.callTestDefend(func(params *tJxorderTestDefendParams) (retVal interface{}, errCode string, err error) { - localjx.CreateOrderByPriceDefend(params.Ctx) + err = localjx.CreateOrderByPriceDefend(params.Ctx) return retVal, "", err }) }