lxw
2023-05-25 f3c27fb78447449a950ba73c5e72ceda64ad8a12
src/main/java/com/whyc/controller/BattalarmDataController.java
@@ -25,9 +25,9 @@
    @Autowired
    private BattalarmDataService service;
    /*@GetMapping("/getAll")
    @ApiOperation(value = "查询所有的实时告警")*/
    public Response<List<BattalarmData>> getAll(){
    @GetMapping("/getAll")
    @ApiOperation(value = "查询所有的实时告警")
    public Response getAll(){
        return service.getAll();
    }
@@ -111,7 +111,7 @@
    @ApiOperation(value = "获取底部电池告警",notes = "项目下方的滚动,查询最新电池告警(电池告警和设备告警筛选出最新的五条)")
    public Response getRealAlarm(){
        UserInf userInf = ActionUtil.getUser();
        return service.getRealAlarm(userInf.getUId().intValue());
        return service.getRealAlarm(userInf.getUId().intValue(), null);
    }