HomeController.java 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. package com.ims.eval.api;
  2. import com.ims.eval.entity.dto.result.R;
  3. import com.ims.eval.service.IEvaluationPortalService;
  4. import lombok.extern.slf4j.Slf4j;
  5. import org.springframework.beans.factory.annotation.Autowired;
  6. import org.springframework.web.bind.annotation.GetMapping;
  7. import org.springframework.web.bind.annotation.RequestMapping;
  8. import org.springframework.web.bind.annotation.RequestParam;
  9. import org.springframework.web.bind.annotation.RestController;
  10. import java.util.Map;
  11. /**
  12. * @author hlf
  13. * @date 2023/7/12 10:58
  14. * 文件说明:
  15. */
  16. @Slf4j
  17. @RestController
  18. @RequestMapping("//evaluation-app-home")
  19. public class HomeController {
  20. @Autowired
  21. private IEvaluationPortalService portalService;
  22. /**
  23. * 年度排行榜数据
  24. *
  25. * @param binSection binSection
  26. * @param year 年度
  27. * @return 结果
  28. */
  29. @GetMapping(value = "/list")
  30. public R listAll(@RequestParam(value = "binSection") String binSection,
  31. @RequestParam(value = "year") String year) {
  32. Map<String, Object> data = portalService.selectPortalList(binSection, year, null);
  33. return R.ok().data(data);
  34. }
  35. }