| | |
| | | import com.github.pagehelper.Page; |
| | | import com.github.pagehelper.PageHelper; |
| | | import com.job.zsc.mapper.FugitiveDustMapper; |
| | | import com.job.zsc.pojo.AnalysisDustData; |
| | | import com.job.zsc.pojo.DustSiteData; |
| | | import com.job.zsc.pojo.PageBean; |
| | | import com.job.zsc.pojo.*; |
| | | import com.job.zsc.service.FugitiveDustService; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | List<AnalysisDustData> list = fugitiveDustMapper.analysisdata(siteName,beginTime,endTime); |
| | | return list; |
| | | } |
| | | |
| | | @Override |
| | | public List<AnalysisDustData> analysisByTime(String siteName, String beginTime, String endTime) { |
| | | List<AnalysisDustData> list = fugitiveDustMapper.analysisByTime(siteName,beginTime,endTime); |
| | | return list; |
| | | } |
| | | |
| | | @Override |
| | | public PageBean pageAnalysisTime(Integer page, Integer pageSize, String siteName, String beginTime, String endTime) { |
| | | //设置分页参数 |
| | | PageHelper.startPage(page,pageSize); |
| | | //执行查询 |
| | | List<AnalysisDustData> infoList=fugitiveDustMapper.analysisByTime(siteName,beginTime,endTime); |
| | | //获取查询结果 |
| | | Page<AnalysisDustData> p=(Page<AnalysisDustData>)infoList; |
| | | |
| | | //封装PageBean对象*/ |
| | | PageBean pageBean=new PageBean(p.getTotal(),p.getResult()); |
| | | return pageBean; |
| | | } |
| | | |
| | | @Override |
| | | public List<DustExceptionType> getExceptionType() { |
| | | List<DustExceptionType> list = fugitiveDustMapper.getExceptionType(); |
| | | return list; |
| | | } |
| | | |
| | | @Override |
| | | public PageBean getExceptionData(Integer page, Integer pageSize, String siteName, String[] exceptionType, String beginTime, String endTime) { |
| | | //设置分页参数 |
| | | PageHelper.startPage(page,pageSize); |
| | | |
| | | List<DustExceptionData> infoList = fugitiveDustMapper.getExceptionData(siteName,exceptionType,beginTime,endTime); |
| | | //获取查询结果 |
| | | Page<DustExceptionData> p=(Page<DustExceptionData>)infoList; |
| | | |
| | | //封装PageBean对象*/ |
| | | PageBean pageBean=new PageBean(p.getTotal(),p.getResult()); |
| | | |
| | | return pageBean; |
| | | } |
| | | |
| | | @Override |
| | | public List<DustExceptionData> getExceptionSitenameAndCode(String exceptionType, String beginTime, String endTime) { |
| | | List<DustExceptionData> list = fugitiveDustMapper.getExceptionSitenameAndCode(exceptionType,beginTime,endTime); |
| | | return list; |
| | | } |
| | | |
| | | @Override |
| | | public Integer exceptionNum(String exceptionType, String beginTime, String endTime) { |
| | | Integer list = fugitiveDustMapper.exceptionNum(exceptionType,beginTime,endTime); |
| | | return list; |
| | | } |
| | | |
| | | @Override |
| | | public List<DustSiteData> conditonQueryHistoryData(String siteName, String beginTime, String endTime) { |
| | | List<DustSiteData> list = fugitiveDustMapper.conditonQueryHistoryData(siteName,beginTime,endTime); |
| | | return list; |
| | | } |
| | | |
| | | @Override |
| | | public List<DustExceptionData> getExceptionAllData(String siteName, String[] exceptionType, String beginTime, String endTime) { |
| | | List<DustExceptionData> list = fugitiveDustMapper.getExceptionData(siteName,exceptionType,beginTime,endTime); |
| | | return list; |
| | | } |
| | | |
| | | @Override |
| | | public List<DustExceptionData> exceptionSiteNum() { |
| | | List<DustExceptionData> list = fugitiveDustMapper.exceptionSiteNum(); |
| | | return list; |
| | | } |
| | | |
| | | @Override |
| | | public List<AnalysisDustData> analysisAll(String siteName, String beginTime, String endTime) { |
| | | List<AnalysisDustData> list = fugitiveDustMapper.analysisByTime(siteName,beginTime,endTime); |
| | | return list; |
| | | } |
| | | |
| | | @Override |
| | | public List<DustSiteData> conditonQueryhistoryallData(String siteName, String mnCode, String beginTime, String endTime, String[] scenarioType) { |
| | | List<DustSiteData> list = fugitiveDustMapper.conditonQueryDustHistoryData(siteName,mnCode,beginTime,endTime,scenarioType); |
| | | return list; |
| | | } |
| | | |
| | | |
| | | } |