whyclxw
2025-06-12 eada8042dfebd2137e3e0ce55702912d7a2a3e05
src/main/java/com/whyc/controller/AlmParamController.java
@@ -34,11 +34,17 @@
    private PwrdevAlarmParamService pwrAlmparamService;
    @PostMapping("getBattAlmParam")
    /*@PostMapping("getBattAlmParam")
    @ApiOperation("获取电池告警参数")
    public Response getBattAlmParam(@RequestBody AlmDto almDto){
        almDto.setUid(ActionUtil.getUser().getId());
        return battAlmparamService.getBattAlmParam(almDto);
    }*/
    @GetMapping("getBattAlmParam")
    @ApiOperation("获取电池告警参数")
    public Response getBattAlmParam(@RequestParam Integer battgroupId){
        return battAlmparamService.getBattAlmParam(battgroupId);
    }
    @PostMapping("setBattAlmParam")
@@ -59,13 +65,20 @@
        return devAlmparamService.setDevAlmParam(almparamList);
    }
    @PostMapping("getPwrAlmParam")
    /*@PostMapping("getPwrAlmParam")
    @ApiOperation("获取电源告警参数")
    public Response getPwrAlmParam(@RequestBody AlmDto almDto){
        almDto.setUid(ActionUtil.getUser().getId());
        return pwrAlmparamService.getPwrAlmParam(almDto);
    }*/
    @GetMapping("getPwrAlmParam")
    @ApiOperation("获取电源告警参数")
    public Response getPwrAlmParam(@RequestParam Integer powerId){
        return pwrAlmparamService.getPwrAlmParam(powerId);
    }
    @PostMapping("setPwrAlmParam")
    @ApiOperation("修改电源告警参数")
    public Response setPwrAlmParam(@RequestBody List<PwrdevAlarmParam> almparamList){