package com.ycl.service.trend.impl; import com.ycl.dto.trend.TrendAnalysisParam; import com.ycl.mapper.trend.TrendAnalysisMapper; import com.ycl.service.trend.TrendAnalysisService; import com.ycl.vo.TrendVo; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.autoconfigure.amqp.RabbitProperties; import org.springframework.stereotype.Service; import javax.annotation.Resource; import java.util.List; import java.util.stream.Collectors; @Service public class TrendAnalysisServiceImpl implements TrendAnalysisService { @Resource TrendAnalysisMapper trendAnalysisMapper; @Override public List list(TrendAnalysisParam trendAnalysisParam, Integer pageSize, Integer pageNum) { return trendAnalysisMapper.selectTrendInfo(trendAnalysisParam); } @Override public List queryPointInfo(String longitude,String latitude) { return trendAnalysisMapper.selectTrendPointInfo(longitude,latitude); } @Override public List queryListByCount(TrendAnalysisParam trendAnalysisParam, Integer pageSize, Integer pageNum) { return trendAnalysisMapper.selectTrendInfo(trendAnalysisParam).stream().filter(item->"1".equals(item.getCount())).collect(Collectors.toList()); } }