| | |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | @RestController |
| | | @Api(tags = "测控核容装置") |
| | |
| | | @Autowired |
| | | private CKPowerDevHrTestParamService service; |
| | | |
| | | @ApiOperation("设置") |
| | | @ApiOperation("读取核容参数") |
| | | @GetMapping("getBattDisParam") |
| | | public Response getBattDisParam(){ |
| | | return service.getBattDisParam(); |
| | | } |
| | | |
| | | @ApiOperation("读取核容设备IP") |
| | | @GetMapping("getDevIp") |
| | | public Response getDevIp(){ |
| | | return service.getDevIp(); |
| | | } |
| | | |
| | | |
| | | @ApiOperation(value = "设置参数或设备ip",notes = "必须传入op_cmd," + |
| | | "设置核容参数时=50,\t" + |
| | | "设置设备IP时=54" |
| | | ) |
| | | @PostMapping("update") |
| | | public Response update(@RequestBody CKPowerDevHrTestParam set){ |
| | | return service.update(set); |
| | | } |
| | | |
| | | @ApiOperation(value = "设置启动或停止",notes = "必须传入op_cmd," + |
| | | "启动电池组1核容测试=56,\t" + |
| | | "停止电池组1核容测试=64,\t" + |
| | | "启动电池组2核容测试=66,\t" + |
| | | "停止电池组2核容测试=68,\t" + |
| | | "启动电池组1内阻测试=70,\t" + |
| | | "停止电池组1内阻测试=72,\t" + |
| | | "启动电池组2内阻测试=80,\t" + |
| | | "停止电池组2内阻测试=82,\t" + |
| | | "启动核容装置K1测试=84,\t" + |
| | | "停止核容装置K1测试=86,\t" + |
| | | "启动核容装置D1测试=94,\t" + |
| | | "停止核容装置D1测试=96,\t" + |
| | | "重启核容装置=98" |
| | | ) |
| | | @PostMapping("updateStartOrStop") |
| | | public Response updateStartOrStop(@RequestParam Integer opCmd){ |
| | | return service.updateStartOrStop(opCmd); |
| | | } |
| | | |
| | | } |