SelectStatisticsController.java 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. package com.gz.controller.statistics;
  2. import cn.hutool.core.lang.tree.Tree;
  3. import com.gz.rvo.statistics.ArchiveStatisticsRVO;
  4. import com.gz.rvo.statistics.ArchiveYearStatisticsRVO;
  5. import com.gz.rvo.statistics.BorrowStatisticsRVO;
  6. import com.gz.service.statistics.SelectStatisticsService;
  7. import com.gz.vo.statistics.StatisticsVO;
  8. import org.springframework.web.bind.annotation.GetMapping;
  9. import org.springframework.web.bind.annotation.RequestMapping;
  10. import org.springframework.web.bind.annotation.RestController;
  11. import javax.annotation.Resource;
  12. import java.util.List;
  13. /**
  14. * 查询统计
  15. * @author LiuchangLan
  16. * @date 2021/3/8 14:59
  17. */
  18. @RestController
  19. @RequestMapping("statistics")
  20. public class SelectStatisticsController {
  21. @Resource
  22. private SelectStatisticsService service;
  23. @GetMapping("selectStatisticsByType")
  24. List<ArchiveStatisticsRVO> selectStatisticsByType(StatisticsVO vo){
  25. return service.selectStatisticsByType(vo);
  26. }
  27. @GetMapping("selectArchiveYearStatistics")
  28. public List<ArchiveYearStatisticsRVO> selectArchiveYearStatistics(StatisticsVO vo) {
  29. return service.selectArchiveYearStatistics(vo);
  30. }
  31. @GetMapping("selectBorrowStatistics")
  32. List<BorrowStatisticsRVO> selectBorrowStatistics(StatisticsVO vo){
  33. return service.selectBorrowStatistics(vo);
  34. }
  35. }