PlatBuildProtectController.java 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. package com.project.zcustom.controller.build;
  2. import com.project.zcustom.controller.core.AjaxResult;
  3. import com.project.zcustom.controller.core.BaseController;
  4. import com.project.zcustom.service.unit.IPlatBuildingService;
  5. import lombok.RequiredArgsConstructor;
  6. import org.springframework.beans.factory.annotation.Autowired;
  7. import org.springframework.web.bind.annotation.GetMapping;
  8. import org.springframework.web.bind.annotation.RequestMapping;
  9. import org.springframework.web.bind.annotation.RestController;
  10. @RestController
  11. @RequestMapping("/large/second")
  12. @RequiredArgsConstructor(onConstructor_ = @Autowired)
  13. public class PlatBuildProtectController extends BaseController {
  14. @Autowired
  15. private IPlatBuildingService platBuildingService;
  16. /**
  17. * 巡更次数统计(近6月)
  18. */
  19. @GetMapping("/frequency")
  20. public AjaxResult frequency() {
  21. return AjaxResult.success("查询成功", platBuildingService.frequency());
  22. }
  23. /**
  24. * 巡更及时率
  25. */
  26. @GetMapping("/patrol")
  27. public AjaxResult patrol() {
  28. return AjaxResult.success("查询成功", platBuildingService.patrol());
  29. }
  30. /**
  31. * 巡更点统计
  32. */
  33. @GetMapping("/patrolPoint")
  34. public AjaxResult patrolPoint() {
  35. return AjaxResult.success("查询成功", platBuildingService.patrolPoint());
  36. }
  37. }