whyclxw
2025-06-13 37b198e2ed9a87ae52987e0069d7c7d7e01cc7fb
src/main/java/com/whyc/controller/AlmParamController.java
@@ -2,6 +2,7 @@
import com.whyc.constant.*;
import com.whyc.dto.AlarmParam;
import com.whyc.dto.Param.ParamAlmDto;
import com.whyc.dto.Real.AlmDto;
import com.whyc.dto.Response;
import com.whyc.dto.Station.Power;
@@ -41,10 +42,12 @@
        return battAlmparamService.getBattAlmParam(almDto);
    }*/
    @GetMapping("getBattAlmParam")
    @PostMapping("getBattAlmParam")
    @ApiOperation("获取电池告警参数")
    public Response getBattAlmParam(@RequestParam Integer battgroupId){
        return battAlmparamService.getBattAlmParam(battgroupId);
    public Response getBattAlmParam(@RequestBody ParamAlmDto dto){
        Integer uid=ActionUtil.getUser().getId();
        dto.setUid(uid);
        return battAlmparamService.getBattAlmParam(dto);
    }
    @PostMapping("setBattAlmParam")
@@ -72,10 +75,12 @@
        return pwrAlmparamService.getPwrAlmParam(almDto);
    }*/
    @GetMapping("getPwrAlmParam")
    @PostMapping("getPwrAlmParam")
    @ApiOperation("获取电源告警参数")
    public Response getPwrAlmParam(@RequestParam Integer powerId){
        return pwrAlmparamService.getPwrAlmParam(powerId);
    public Response getPwrAlmParam(@RequestBody ParamAlmDto dto){
        Integer uid=ActionUtil.getUser().getId();
        dto.setUid(uid);
        return pwrAlmparamService.getPwrAlmParam(dto);
    }