| | |
| | | package com.whyc.controller; |
| | | |
| | | import com.whyc.dto.DevAlarmHisDto; |
| | | import com.whyc.dto.Response; |
| | | import com.whyc.pojo.db_ckpwrdev_alarm.CKPowerDevAlarm; |
| | | import com.whyc.pojo.db_ckpwrdev_alarm.CKPowerDevAlarmHistory; |
| | | import com.whyc.service.CKPowerDevAlarmHistoryService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import java.text.ParseException; |
| | | |
| | | @RestController |
| | | @Api(tags = "测控电源告警") |
| | | @Api(tags = "测控电源历史告警") |
| | | @RequestMapping("ckPowerDevAlarmHistory") |
| | | public class CKPowerDevAlarmHistoryController { |
| | | |
| | |
| | | |
| | | @PostMapping("getPage") |
| | | @ApiOperation("分页查询") |
| | | public Response getPage(@RequestBody CKPowerDevAlarm alarm){ |
| | | return service.getPage(alarm); |
| | | public Response getPage(@RequestBody DevAlarmHisDto alarmDto) throws ParseException { |
| | | return service.getPage(alarmDto); |
| | | } |
| | | |
| | | @PostMapping("getCountByLevel") |
| | | @ApiOperation("头部统计") |
| | | public Response getCountByLevel() throws InterruptedException { |
| | | return service.getCountByLevel(); |
| | | } |
| | | } |