...
|
...
|
@@ -33,14 +33,14 @@ public class PriceTrendHalfYearService implements PriceTrendServiceInf{ |
|
|
int timeSecondOfHalfYear = DateUtil.getTimeSecondOfDay(-180);
|
|
|
List<PriceTrendModel> priceTrendModels = priceTrendHalfYearMapper.selectByProductId(productId, sizeId, timeSecondOfHalfYear, DateUtil.getTimeSecondOfDay(0));
|
|
|
|
|
|
List<PriceTrendModel> completeResult = compeleteZeroPrice(priceTrendModels, timeSecondOfHalfYear, productId, sizeId);
|
|
|
//List<PriceTrendModel> completeResult = compeleteZeroPrice(priceTrendModels, timeSecondOfHalfYear, productId, sizeId);
|
|
|
|
|
|
completeResult.stream().forEach(item -> {
|
|
|
priceTrendModels.stream().forEach(item -> {
|
|
|
item.setEndTime(null == item.getCreateTime() ? null : item.getCreateTime());
|
|
|
item.setStartTime(null == item.getCreateTime() ? null : item.getCreateTime() - 259200);
|
|
|
});
|
|
|
|
|
|
return completeResult;
|
|
|
return priceTrendModels;
|
|
|
}
|
|
|
|
|
|
return Lists.newArrayList();
|
...
|
...
|
|