whyclxw
2022-01-04 ff102f4cb1ae1c4d56625a402c1bed0c87bbbb53
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
package com.whyc.controller;
 
import com.whyc.dto.Response;
import com.whyc.pojo.Fbs9100Setparam;
import com.whyc.service.Fbs9100SetparamService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
 
@Api(tags = "作业管理-放电计划管理")
@RestController
@RequestMapping("Fbs9100_setparamAction")
public class Fbs9100SetparamController {
    @Autowired
    private Fbs9100SetparamService service;
 
    @ApiOperation(value = "查询设备的参数",notes = "等10s响应")
    @GetMapping("/serchdevParam")
    private Response serchdevParam(@RequestParam int devId){
        return  service.serchdevParam(devId);
    }
 
    @ApiOperation("在线监测-实时监控-BTS停止")
    @GetMapping("serchbyDev_id")
    private Response serchbyDev_id(@RequestParam int num,@RequestParam int testCmd,@RequestParam int devId){
        return service.serchbyDev_id(num,testCmd,devId);
    }
 
    @ApiOperation("在线监测-实时监控-重启设备")
    @PostMapping("updateMaintain")
    private Response updateMaintain(@RequestBody Fbs9100Setparam fbs9100Setparam){
        return service.updateMaintain(fbs9100Setparam);
    }
}