根据skuID部分关注
This commit is contained in:
@@ -2969,6 +2969,7 @@ func FocusStoreSkusBySku(ctx *jxcontext.Context, skuIDs []int, isAsync, isContin
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
skuBindInfo := &StoreSkuBindInfo{
|
skuBindInfo := &StoreSkuBindInfo{
|
||||||
|
StoreID: store.ID,
|
||||||
NameID: k,
|
NameID: k,
|
||||||
UnitPrice: price,
|
UnitPrice: price,
|
||||||
IsFocus: 1,
|
IsFocus: 1,
|
||||||
@@ -2989,7 +2990,7 @@ func FocusStoreSkusBySku(ctx *jxcontext.Context, skuIDs []int, isAsync, isContin
|
|||||||
case 2:
|
case 2:
|
||||||
for _, v := range result1 {
|
for _, v := range result1 {
|
||||||
tUpdate := v.(*tUpdateStoresSkus)
|
tUpdate := v.(*tUpdateStoresSkus)
|
||||||
UpdateStoresSkus(ctx, []int{tUpdate.StoreID}, tUpdate.SkuBindInfos, false, isAsync, isContinueWhenError)
|
UpdateStoresSkusByBind(ctx, tUpdate.SkuBindInfos, isAsync, isContinueWhenError)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return result, err
|
return result, err
|
||||||
|
|||||||
Reference in New Issue
Block a user