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();
|
}
|
}
|