| | |
| | | package com.whyc.controller; |
| | | |
| | | import com.sun.jna.platform.win32.OaIdl; |
| | | import com.whyc.dto.Response; |
| | | import com.whyc.pojo.Fbs9100Setparam; |
| | | import com.whyc.service.Fbs9100SetparamService; |
| | |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.Date; |
| | | |
| | | @Api(tags = "作业管理-放电计划管理") |
| | | @RestController |
| | | @RequestMapping("Fbs9100_setparamAction") |
| | | public class Fbs9100SetparamController { |
| | | public class Fbs9100SetparamController extends BaseController{ |
| | | @Autowired |
| | | private Fbs9100SetparamService service; |
| | | |
| | |
| | | public Response serchbyDev_id(@RequestParam int num, Integer testCmd, @RequestParam int devId, @RequestParam int battGroupNum) { |
| | | return service.serchbyDev_id(num, testCmd, devId, battGroupNum); |
| | | } |
| | | |
| | | @ApiOperation(tags = "在线监测-实时监控", value = "在线监测-实时监控-内阻测试") |
| | | @GetMapping("serchbyDev_id_res") |
| | | public Response serchbyDev_id_res( @RequestParam int devId, @RequestParam int battGroupNum) { |
| | | return service.serchbyDev_id_res( devId, battGroupNum); |
| | | } |
| | | @ApiOperation(tags = "在线监测-实时监控", value = "BTS停止基础上加上tb_li9130_setparam_plan表得is_statup设置为0") |
| | | @GetMapping("serchbyDev_id_li9130") |
| | | public Response serchbyDev_id_li9130(@RequestParam int num, Integer testCmd, @RequestParam int devId, @RequestParam int battGroupNum) { |
| | |
| | | return service.controllerFBO4830(opCmd, devId); |
| | | } |
| | | |
| | | @ApiOperation(tags = "在线监测-实时监控", value = "在线监测-实时监控-读取FBO_4831放电参数") |
| | | @GetMapping("searchFBO4831Param") |
| | | public Response searchFBO4831Param(@RequestParam int opCmd, @RequestParam int devId) { |
| | | return service.searchFBO4831Param(opCmd, devId); |
| | | } |
| | | |
| | | /* @ApiOperation(tags = "在线监测-实时监控", value = "在线监测-实时监控-设置FBO_4831放电参数") |
| | | @PostMapping("updateFBO4831Param") |
| | | public Response updateFBO4831Param(@RequestBody Fbs9100Setparam a059setParam) { |
| | | return service.updateFBO4830Param(a059setParam); |
| | | } |
| | | |
| | | @ApiOperation(tags = "在线监测-实时监控", value = "在线监测-实时监控-控制FBO_4831充放电停止") |
| | | @GetMapping("controllerFBO4831") |
| | | public Response controllerFBO4831(@RequestParam int opCmd, @RequestParam int devId) { |
| | | return service.controllerFBO4830(opCmd, devId); |
| | | }*/ |
| | | |
| | | @ApiOperation(tags = "在线监测-实时监控", value = "在线监测-实时监控-控制并联电源充放电停止") |
| | | @GetMapping("controllerParalle") |
| | | public Response controllerParalle(@RequestParam int opCmd, @RequestParam int testCmd, @RequestParam int battGroupNum, @RequestParam int devId) { |
| | | return service.controllerParalle(opCmd, testCmd, battGroupNum, devId); |
| | | } |
| | | |
| | | @ApiOperation(tags = "在线监测-实时监控", value = "在线监测-实时监控-设置并联电源放电参数") |
| | | @PostMapping("updateParalleParam") |
| | | public Response updateParalleParam(@RequestBody Fbs9100Setparam a059setParam) { |
| | | return service.updateParalleParam(a059setParam); |
| | | } |
| | | |
| | | @ApiOperation(tags = "在线监测-实时监控", value = "在线监测-实时监控-读取并联电源放电参数") |
| | | @GetMapping("searchParalleParam") |
| | | public Response searchParalleParam(@RequestParam int opCmd, @RequestParam int hvMonUppernum1, @RequestParam int battGroupNum, @RequestParam int devId) { |
| | | return service.searchParalleParam(opCmd, hvMonUppernum1, battGroupNum, devId); |
| | | } |
| | | |
| | | @ApiOperation(tags = "在线监测-实时监控", value = "在线监测-实时监控-读取kgdy放电参数") |
| | | @GetMapping("searchKgdyParam") |
| | |
| | | public Response updateKgdyParam(@RequestBody Fbs9100Setparam a059setParam) { |
| | | return service.updateKgdyParam(a059setParam); |
| | | } |
| | | |
| | | @ApiOperation(tags = "设置参数", value = "读取参数-配网电源") |
| | | @GetMapping("searchPW") |
| | | public Response searchPW(@RequestParam int devId){ |
| | | return service.searchPW(devId); |
| | | } |
| | | |
| | | @ApiOperation(tags = "设置参数", value = "设置参数-配网电源") |
| | | @PostMapping("updatePW") |
| | | public Response updatePW(@RequestBody Fbs9100Setparam param) { |
| | | return service.updatePW(param); |
| | | } |
| | | |
| | | @ApiOperation(tags = "设置参数", value = "设置参数-配网电源-启动充电测试|放电测试") |
| | | @PostMapping("updatePWStartTest") |
| | | public Response updatePWStartTest(@RequestParam int devId,@RequestParam int opCmd,@RequestParam int testCmd) { |
| | | return service.updatePWStartTest(devId,opCmd,testCmd); |
| | | } |
| | | |
| | | @ApiOperation(tags = "设置参数", value = "设置参数-配网电源-停止测试") |
| | | @PostMapping("updatePWStopTest") |
| | | public Response updatePWStopTest(@RequestParam int devId) { |
| | | return service.updatePWStopTest(devId); |
| | | } |
| | | |
| | | @ApiOperation(tags = "设置参数", value = "设置参数-配网电源-重启设备") |
| | | @PostMapping("updatePWRestartDevice") |
| | | public Response updatePWRestartDevice(@RequestParam int devId) { |
| | | return service.updatePWRestartDevice(devId); |
| | | } |
| | | |
| | | /**LD6参数控制逻辑*/ |
| | | @ApiOperation(tags = "设置参数", value = "读取参数-LD6") |
| | | @GetMapping("searchLD6") |
| | | public Response searchLD6(@RequestParam int devId){ |
| | | return service.searchLD6(devId); |
| | | } |
| | | |
| | | @ApiOperation(tags = "设置参数", value = "设置参数-LD6") |
| | | @PostMapping("updateLD6") |
| | | public Response updateLD6(@RequestBody Fbs9100Setparam param) { |
| | | return service.updateLD6(param); |
| | | } |
| | | |
| | | @ApiOperation(tags = "设置参数", value = "设置参数-LD6-启动测试") |
| | | @PostMapping("updateLD6StartTest") |
| | | public Response updateLD6StartTest(@RequestParam int devId) { |
| | | return service.updateLD6StartTest(devId); |
| | | } |
| | | |
| | | @ApiOperation(tags = "设置参数", value = "设置参数-61850-同步时间") |
| | | @GetMapping("update61850SyncTime") |
| | | public Response update61850SyncTime(@RequestParam int devId,@RequestParam String syncTime) { |
| | | return service.update61850SyncTime(devId,syncTime); |
| | | } |
| | | |
| | | @ApiOperation(tags = "设置参数", value = "设置参数-LD6-停止测试") |
| | | @PostMapping("updateLD6StopTest") |
| | | public Response updateLD6StopTest(@RequestParam int devId) { |
| | | return service.updateLD6StopTest(devId); |
| | | } |
| | | @ApiOperation(tags = "设置参数", value = "读取参数-智能母联") |
| | | @GetMapping("searchML") |
| | | public Response searchML(@RequestParam int devId){ |
| | | return service.searchML(devId); |
| | | } |
| | | |
| | | @ApiOperation(tags = "设置参数", value = "设置参数-智能母联") |
| | | @PostMapping("updateML") |
| | | public Response updateML(@RequestBody Fbs9100Setparam param) { |
| | | return service.updateML(param); |
| | | } |
| | | |
| | | @ApiOperation(tags = "设置参数", value = "设置参数-通用启动|停止 DCDC") |
| | | @PostMapping("updateStartOrStopTest") |
| | | public Response updateStartOrStopTest(@RequestParam int devId,@RequestParam int opCmd,@RequestParam int testCmd) { |
| | | return service.updateOpCmdAndTestCmd(devId,opCmd,testCmd); |
| | | } |
| | | |
| | | @ApiOperation(tags = "在线监测-实时监控", value = "在线监测-实时监控-读取9612放电参数") |
| | | @GetMapping("searchFBS9612Param") |
| | | public Response searchFBS9612Param(@RequestParam int opCmd, @RequestParam int devId) { |
| | | return service.searchFBS9612Param(opCmd, devId); |
| | | } |
| | | |
| | | @ApiOperation(tags = "在线监测-实时监控", value = "在线监测-实时监控-设置9612放电参数") |
| | | @PostMapping("updateFBS9612Param") |
| | | public Response updateFBS9612Param(@RequestBody Fbs9100Setparam a059setParam) { |
| | | return service.updateFBS9612Param(a059setParam); |
| | | } |
| | | |
| | | @ApiOperation(tags = "在线监测-实时监控", value = "在线监测-实时监控-控制9612充放电停止/内阻") |
| | | @GetMapping("controllerFBS9612") |
| | | public Response controllerFBS9612(@RequestParam int opCmd,@RequestParam int testType, @RequestParam int devId) { |
| | | return service.controllerFBS9612(opCmd,testType,devId); |
| | | } |
| | | |
| | | } |