lxw
2023-05-17 cc95ea96c89301a181147fb35b7b589d61c80233
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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.*;
 
 
@RestController
@Api(tags = "告警管理-电池告警参数设置")
@RequestMapping("Dev_paramAction")
public class DevParamController {
    @Autowired
    private DevParamService service;
 
    @ApiOperation("电池告警参数设置--列表查询")
    @GetMapping("serchByCondition")
    public 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")
    public Response update(@RequestBody DevParam devParam){
        return service.update(devParam);
    }
 
    @ApiOperation(value = "在线监测-实时监控-查询告警")
    @GetMapping("serchParamById")
    public Response serchParamById(@RequestParam int devId){
        return service.serchParamById(devId);
    }
}