From 3e0674f066d276a95f77927c60904668098c32ec Mon Sep 17 00:00:00 2001 From: gazebo Date: Mon, 27 May 2019 18:17:58 +0800 Subject: [PATCH] - up --- business/jxcallback/orderman/order_afs.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/business/jxcallback/orderman/order_afs.go b/business/jxcallback/orderman/order_afs.go index ecc0cdcae..60eb5483d 100644 --- a/business/jxcallback/orderman/order_afs.go +++ b/business/jxcallback/orderman/order_afs.go @@ -256,6 +256,7 @@ func (c *OrderManager) updateAfsOrderSkuOtherInfo(db *dao.DaoDB, order *model.Af skumapper[v.VendorSkuID] = v } for _, v := range orderSkus { + v.AfsOrderID = order.AfsOrderID v.JxStoreID = jxStoreID intVendorSkuID := utils.Str2Int64WithDefault(v.VendorSkuID, 0) if intVendorSkuID != 0 && v.VendorSkuID != "-70000" { // todo hard code @@ -314,7 +315,7 @@ func (c *OrderManager) setAfsOrderID(db *dao.DaoDB, orderStatus *model.OrderStat list := strings.Split(afsOrderList[0].AfsOrderID, "-") if len(list) > 1 { index = int(utils.Str2Int64WithDefault(list[1], 0)) - if afsOrderList[1].Status >= model.AfsOrderStatusFinished { + if afsOrderList[0].Status >= model.AfsOrderStatusFinished { index++ } }