whyclxw
2024-02-26 fd7fd3699d45165be5a890832659cd83ea94b9cf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package com.whyc.controller;
 
import com.whyc.dto.BreakAlarmDto;
import com.whyc.dto.DevAlarmHisDto;
import com.whyc.dto.Response;
import com.whyc.service.CKPowerDevBreakAlarmHistoryService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
 
import java.text.ParseException;
 
@RestController
@Api(tags = "断路器历史告警")
@RequestMapping("ckPowerDevBreakAlarmHistory")
public class CKPowerDevBreakAlarmHistoryController {
 
    @Autowired
    private CKPowerDevBreakAlarmHistoryService service;
 
    @PostMapping("getPage")
    @ApiOperation("分页查询")
    public Response getPage(@RequestBody BreakAlarmDto alarmDto) throws ParseException {
        return service.getPage(alarmDto);
    }
 
    @GetMapping("getCountByLevel")
    @ApiOperation("头部统计")
    public Response getCountByLevel() throws InterruptedException {
        return service.getCountByLevel();
    }
}