...
|
...
|
@@ -80,21 +80,7 @@ public class YohoProductAnalysisIndexBuilder extends IIndexBuilder { |
|
|
analysisIndexBO.setShelveTime(product.getShelveTime());
|
|
|
List<Integer> physicalChannels = salesCategoryLogicService.getPhysicalChannelsBySmallSortId(product.getSmallSortId());
|
|
|
analysisIndexBO.setYhChannel(StringUtils.join(physicalChannels, ","));
|
|
|
analysisIndexBO.setShopCreateTime(builderShop(product));
|
|
|
return analysisIndexBO;
|
|
|
}
|
|
|
|
|
|
private Integer builderShop(Product product) {
|
|
|
try {
|
|
|
Map<Integer, Shops> shopsMap = basicDataCacheService.getShop();
|
|
|
Shops shops = shopsMap.get(product.getShopId());
|
|
|
if (shops != null) {
|
|
|
return shops.getCreateTime();
|
|
|
}
|
|
|
return null;
|
|
|
} catch(Exception e) {
|
|
|
return null;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
} |
...
|
...
|
|