| | |
| | | @Autowired |
| | | private BattalarmDataService service; |
| | | |
| | | /*@GetMapping("/getAll") |
| | | @ApiOperation(value = "查询所有的实时告警")*/ |
| | | public Response<List<BattalarmData>> getAll(){ |
| | | @GetMapping("/getAll") |
| | | @ApiOperation(value = "查询所有的实时告警") |
| | | public Response getAll(){ |
| | | return service.getAll(); |
| | | } |
| | | |
| | |
| | | @ApiOperation(value = "获取底部电池告警",notes = "项目下方的滚动,查询最新电池告警(电池告警和设备告警筛选出最新的五条)") |
| | | public Response getRealAlarm(){ |
| | | UserInf userInf = ActionUtil.getUser(); |
| | | return service.getRealAlarm(userInf.getUId().intValue()); |
| | | return service.getRealAlarm(userInf.getUId().intValue(), null); |
| | | } |
| | | |
| | | |