whyclxw
2022-01-07 dca5fa1b0367ccbc052ef953db6adb5c2e2bc64c
src/main/java/com/whyc/controller/DevParamController.java
@@ -1,19 +1,17 @@
package com.whyc.controller;
import com.whyc.dto.Response;
import com.whyc.pojo.DevParam;
import com.whyc.service.DevParamService;
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.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*;
@RestController
@Api(tags = "电池告警参数设置")
@Api(tags = "告警管理-电池告警参数设置")
@RequestMapping("Dev_paramAction")
public class DevParamController {
    @Autowired
@@ -24,4 +22,16 @@
    private Response serchByCondition(@RequestParam int devId,@RequestParam int almId){
        return service.serchByCondition(devId,almId);
    }
    @ApiOperation(value = "电池告警参数设置--列表修改",notes="almHighCoe,almHighEn,almHighLevel,almId,almLowCoe,almLowEn,almLowLevel,devId")
    @PostMapping("/update")
    private Response update(@RequestBody DevParam devParam){
        return service.update(devParam);
    }
    @ApiOperation(value = "在线监测-实时监控-查询告警")
    @GetMapping("/serchParamById")
    private Response serchParamById(@RequestParam int devId){
        return service.serchParamById(devId);
    }
}