...
|
...
|
@@ -24,12 +24,11 @@ public class PriceTrendDayService implements PriceTrendServiceInf{ |
|
|
|
|
|
public List<PriceTrendModel> queryProductPriceTrend(Integer productId, Integer sizeId) {
|
|
|
if (null != productId) {
|
|
|
int currentSecond = DateUtil.getTimeSecondOfDay(0);
|
|
|
int tomorrowSecond = DateUtil.getTimeSecondOfDay(1);
|
|
|
int currentSecond = DateUtil.getCurrentTimeSecond();
|
|
|
|
|
|
LOG.info("method priceTrendDayMapper.selectByProductId in, productId:{},sizeId:{},currentSecond:{},tomorrowSecond:{}", productId, sizeId, currentSecond, tomorrowSecond);
|
|
|
LOG.info("method priceTrendDayMapper.selectByProductId in, productId:{},sizeId:{},currentSecond:{}", productId, sizeId, currentSecond);
|
|
|
|
|
|
List<PriceTrendModel> priceTrendModels = priceTrendDayMapper.selectByProductId(productId, sizeId, currentSecond, tomorrowSecond);
|
|
|
List<PriceTrendModel> priceTrendModels = priceTrendDayMapper.selectByProductId(productId, sizeId, currentSecond - 86400, currentSecond);
|
|
|
|
|
|
priceTrendModels.stream().forEach(item -> {
|
|
|
item.setEndTime(null == item.getCreateTime() ? null : item.getCreateTime());
|
...
|
...
|
|