获取平台门店商品价格
This commit is contained in:
@@ -2550,7 +2550,8 @@ func GetVendorStoreSkuPrice(ctx *jxcontext.Context, vendorIDs []int, skuID int,
|
|||||||
}
|
}
|
||||||
inStoreSkuList = append(inStoreSkuList, inStoreSku)
|
inStoreSkuList = append(inStoreSkuList, inStoreSku)
|
||||||
outStoreSkuList, err := handler.GetStoreSkusBareInfo(ctx, v, task, 0, vendorStoreID, inStoreSkuList)
|
outStoreSkuList, err := handler.GetStoreSkusBareInfo(ctx, v, task, 0, vendorStoreID, inStoreSkuList)
|
||||||
if err != nil {
|
if storeDetail != nil {
|
||||||
|
if len(outStoreSkuList) == 0 {
|
||||||
data := DataVendorStoreSkuPrice{
|
data := DataVendorStoreSkuPrice{
|
||||||
StoreID: vendorStoreID,
|
StoreID: vendorStoreID,
|
||||||
StoreName: storeDetail.Name,
|
StoreName: storeDetail.Name,
|
||||||
@@ -2569,6 +2570,7 @@ func GetVendorStoreSkuPrice(ctx *jxcontext.Context, vendorIDs []int, skuID int,
|
|||||||
}
|
}
|
||||||
retVal = []DataVendorStoreSkuPrice{data}
|
retVal = []DataVendorStoreSkuPrice{data}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return retVal, err
|
return retVal, err
|
||||||
}
|
}
|
||||||
taskParallel := tasksch.NewParallelTask("获取各平台所有门店某商品价格", tasksch.NewParallelConfig().SetIsContinueWhenError(isContinueWhenError), ctx, taskFunc, vendorStoreIDs)
|
taskParallel := tasksch.NewParallelTask("获取各平台所有门店某商品价格", tasksch.NewParallelConfig().SetIsContinueWhenError(isContinueWhenError), ctx, taskFunc, vendorStoreIDs)
|
||||||
|
|||||||
Reference in New Issue
Block a user