whycxzp
2025-04-23 388fa419b1519cf1c845de089c35e52f439f985f
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
package com.whyc.controller;
 
import com.whyc.dto.ActmResDto;
import com.whyc.dto.Response;
import com.whyc.service.DevActmTestParamService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
 
import java.util.List;
 
/**
 * TODO 暂无这个字段,项目完结时确认没有的时候删除
 */
 
@Deprecated
@RestController
@Api(tags = "actm均衡仪控制操作")
@RequestMapping("actmparam")
public class DevActmTestParamController {
 
    @Autowired
    private DevActmTestParamService service;
 
    @ApiOperation(value = "读取actm一体机参数")
    @GetMapping("getActmParam")
    public Object getActmParam(@RequestParam int devId,@RequestParam int index){
        return service.getActmParam(devId,index);
    }
 
    @ApiOperation(value = "设置actm均衡仪参数")
    @PostMapping("setActmParam")
    public Object setActmParam(@RequestBody ActmResDto param){
        return service.setActmParam(param);
    }
 
    @ApiOperation(value = "批量设置actm均衡仪参数")
    @PostMapping("setActmParamPl")
    public Object setActmParamPl(@RequestBody ActmResDto param){
        return service.setActmParamPl(param);
    }
 
    @ApiOperation(value = "批量设置actm均衡仪参数(多线程)")
    @PostMapping("setActmParamPl2")
    public Object setActmParamPl2(@RequestBody ActmResDto param){
        return service.setActmParamPl2(param);
    }
 
    /**
     * @param devId
     * @param index
     * @param type 1:启动 2:暂停 3:继续 4:停止
     * @return
     */
    @ApiOperation(value = "启动,暂停,继续,停止actm均衡仪")
    @GetMapping("controllerActmParam")
    public Object controlActmParam(@RequestParam int devId,@RequestParam int index,@RequestParam int type){
        return service.controlActmParam(devId,index,type);
    }
 
    @ApiOperation(value = "批量控制actm均衡仪")
    @PostMapping("controllActmParamPl")
    public Response controlActmParamPl(@RequestBody List<Integer> devIds,@RequestParam int index,@RequestParam int type){
        return service.controlActmParamPl(devIds,index,type);
    }
 
    @ApiOperation(value = "设置电池组数与电池节数")
    @PostMapping("setActmBatteryStorageNumber")
    public Object setActmBatteryStorageNumber(@RequestBody ActmResDto param){
        return service.setActmBatteryStorageNumber(param);
    }
 
    @ApiOperation(value = "批量设设置电池组数与电池节数")
    @PostMapping("setActmBatteryStorageNumberPl")
    public Object setActmBatteryStorageNumberPl(@RequestBody ActmResDto param){
        return service.setActmBatteryStorageNumberPl(param);
    }
 
}