AppPatroAlertController.java 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. package com.sooka.sponest.data.app.controller;
  2. import com.ruoyi.common.core.web.controller.BaseController;
  3. import com.ruoyi.common.core.web.domain.AjaxResult;
  4. import com.ruoyi.common.core.web.page.TableDataInfo;
  5. import com.sooka.sponest.data.app.domain.AppLeaveBo;
  6. import com.sooka.sponest.data.app.service.AppLeaveService;
  7. import com.sooka.sponest.data.emergency.domain.TPatrolAlert;
  8. import com.sooka.sponest.data.emergency.service.TPatrolAlertService;
  9. import io.swagger.annotations.ApiOperation;
  10. import org.springframework.beans.factory.annotation.Autowired;
  11. import org.springframework.web.bind.annotation.*;
  12. import javax.annotation.Resource;
  13. import java.util.List;
  14. @RestController
  15. @RequestMapping("AppPatroAlertController")
  16. public class AppPatroAlertController extends BaseController {
  17. @Autowired
  18. private TPatrolAlertService service;
  19. @ApiOperation(value = "巡更告警", notes = "巡更告警")
  20. @GetMapping("/list")
  21. public AjaxResult list(TPatrolAlert tAttach)
  22. {
  23. List<TPatrolAlert> list = service.selectTPatrolAlertList(tAttach);
  24. return AjaxResult.success(list);
  25. }
  26. }