获取京东库过滤库存为0的
This commit is contained in:
@@ -52,7 +52,9 @@ func (p *PurchaseHandler) getStoreSkusBareInfoLimitSize(ctx *jxcontext.Context,
|
||||
sku := storeSkuMap[utils.Int64ToStr(v.SkuID)]
|
||||
sku.Status = jdStoreSkuStatus2Jx(v.Vendibility)
|
||||
sku.Stock = v.UsableQty
|
||||
outStoreSkuList = append(outStoreSkuList, sku)
|
||||
if sku.Stock > 0 {
|
||||
outStoreSkuList = append(outStoreSkuList, sku)
|
||||
}
|
||||
}
|
||||
for _, v := range priceInfo {
|
||||
sku := storeSkuMap[utils.Int64ToStr(v.SkuID)]
|
||||
|
||||
Reference in New Issue
Block a user