...
|
...
|
@@ -323,9 +323,11 @@ public class UnionShareRebateServiceImpl implements IUnionShareRebateService,IBu |
|
|
}
|
|
|
|
|
|
private Map<Integer, BrandBo> gerBrandInfoMap(List<Integer> brands){
|
|
|
logger.info("gerBrandInfoMap start.brands is {}",brands);
|
|
|
BatchBaseRequest<Integer> req = new BatchBaseRequest<Integer>();
|
|
|
req.setParams(brands);
|
|
|
BrandBo[] boArr = serviceCaller.call("product.queryBrandByIds", req, BrandBo[].class);
|
|
|
logger.info("gerBrandInfoMap start.call product.queryBrandByIds,brands is {},boArr is {},size is {}",brands,boArr,boArr.length);
|
|
|
Map<Integer, BrandBo> boMap = new HashMap<>();
|
|
|
for (int i = 0; i < boArr.length; i++) {
|
|
|
boMap.put(boArr[i].getId(), boArr[i]);
|
...
|
...
|
@@ -333,13 +335,17 @@ public class UnionShareRebateServiceImpl implements IUnionShareRebateService,IBu |
|
|
return boMap;
|
|
|
}
|
|
|
private Map<Integer, ProductBo> gerProductInfoMap(List<Integer> skns){
|
|
|
logger.info("gerProductInfoMap start.skns is {}",skns);
|
|
|
BatchBaseRequest<Integer> req = new BatchBaseRequest<Integer>();
|
|
|
req.setParams(skns);
|
|
|
ProductBo[] boArr = serviceCaller.call("product.batchQueryProductsForUnion", req, ProductBo[].class);
|
|
|
Map<Integer, ProductBo> boMap = new HashMap<>();
|
|
|
for (int i = 0; i < boArr.length; i++) {
|
|
|
boMap.put(boArr[i].getErpProductId(), boArr[i]);
|
|
|
ProductBo[] productArr = serviceCaller.call("product.batchQueryProductsForUnion", req, ProductBo[].class);
|
|
|
logger.info("gerProductInfoMap start.call product.batchQueryProductsForUnion,skns is {},productArr is {},size is {}",skns,productArr,productArr.length);
|
|
|
Map<Integer, ProductBo> productMap = new HashMap<>();
|
|
|
for (int i = 0; i < productArr.length; i++) {
|
|
|
productMap.put(productArr[i].getErpProductId(), productArr[i]);
|
|
|
logger.info("gerProductInfoMap . {},product is {}}",skns,productArr,productArr.length);
|
|
|
|
|
|
}
|
|
|
return boMap;
|
|
|
return productMap;
|
|
|
}
|
|
|
} |
...
|
...
|
|