12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- package com.project.zcustom.controller.build;
- import com.project.zcustom.controller.core.AjaxResult;
- import com.project.zcustom.controller.core.BaseController;
- import com.project.zcustom.service.unit.IPlatBuildingService;
- import lombok.RequiredArgsConstructor;
- import org.springframework.beans.factory.annotation.Autowired;
- import org.springframework.web.bind.annotation.GetMapping;
- import org.springframework.web.bind.annotation.RequestMapping;
- import org.springframework.web.bind.annotation.RestController;
- @RestController
- @RequestMapping("/large/second")
- @RequiredArgsConstructor(onConstructor_ = @Autowired)
- public class PlatBuildProtectController extends BaseController {
- @Autowired
- private IPlatBuildingService platBuildingService;
- /**
- * 巡更次数统计(近6月)
- */
- @GetMapping("/frequency")
- public AjaxResult frequency() {
- return AjaxResult.success("查询成功", platBuildingService.frequency());
- }
- /**
- * 巡更及时率
- */
- @GetMapping("/patrol")
- public AjaxResult patrol() {
- return AjaxResult.success("查询成功", platBuildingService.patrol());
- }
- /**
- * 巡更点统计
- */
- @GetMapping("/patrolPoint")
- public AjaxResult patrolPoint() {
- return AjaxResult.success("查询成功", platBuildingService.patrolPoint());
- }
- }
|