| | |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.text.ParseException; |
| | | |
| | |
| | | public Response getAlmHis(@RequestBody UpsAlarmDTO upsAlarmDTO) throws ParseException { |
| | | return service.getAlmHis(upsAlarmDTO); |
| | | } |
| | | |
| | | @GetMapping("setHisAlmIsConfirmed") |
| | | @ApiOperation(value = "ups历史告警确认") |
| | | public Response setHisAlmIsConfirmed(@RequestParam int num,@RequestParam String year){ |
| | | return service.setHisAlmIsConfirmed(num,year); |
| | | } |
| | | @GetMapping("cancleHisAlmIsConfirmed") |
| | | @ApiOperation(value = "ups历史告警取消") |
| | | public Response cancleHisAlmIsConfirmed(@RequestParam int num,@RequestParam String year){ |
| | | return service.cancleHisAlmIsConfirmed(num,year); |
| | | } |
| | | |
| | | @GetMapping("delHisAlm") |
| | | @ApiOperation(value = "ups历史告警删除") |
| | | public Response delHisAlm(@RequestParam int num,@RequestParam String year){ |
| | | return service.delHisAlm(num,year); |
| | | } |
| | | |
| | | } |