whyclxw
2025-05-28 e16302f9d475c7cc4dd18c5abf1a23cb5502e362
src/main/java/com/whyc/controller/DevParamController.java
@@ -6,26 +6,31 @@
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.*;
@RestController
@Api(tags = "电池告警参数设置")
@Api(tags = "告警管理-电池告警参数设置")
@RequestMapping("Dev_paramAction")
public class DevParamController {
public class DevParamController extends BaseController{
    @Autowired
    private DevParamService service;
    @ApiOperation("电池告警参数设置--列表查询")
    @GetMapping("/serchByCondition")
    private Response serchByCondition(@RequestParam int devId,@RequestParam int almId){
    @GetMapping("serchByCondition")
    public Response serchByCondition(@RequestParam int devId,@RequestParam int almId){
        return service.serchByCondition(devId,almId);
    }
    @ApiOperation("电池告警参数设置--列表修改")
    @PostMapping("/update")
    private Response update(@RequestBody DevParam devParam){
    @ApiOperation(value = "电池告警参数设置--列表修改", notes = "almHighCoe,almHighEn,almHighLevel,almId,almLowCoe,almLowEn,almLowLevel,devId,almHighCoeUpper,alm_low_coe_lower,almHighCoeUpperEn,almLowCoeLowerEn,almDelayTime")
    @PostMapping("update")
    public Response update(@RequestBody DevParam devParam){
        return service.update(devParam);
    }
    @ApiOperation(value = "在线监测-实时监控-查询告警")
    @GetMapping("serchParamById")
    public Response serchParamById(@RequestParam int devId){
        return service.serchParamById(devId);
    }
}