| | |
| | | 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; |
| | | |
| | | @ApiOperation(value = "查询设备的参数", notes = "等10s响应") |
| | | @GetMapping("/serchdevParam") |
| | | @GetMapping("serchdevParam") |
| | | public Response serchdevParam(@RequestParam int devId) { |
| | | return service.serchdevParam(devId); |
| | | } |
| | |
| | | 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) { |
| | |
| | | @PostMapping("update61850Param") |
| | | public Response update61850Param(@RequestBody Fbs9100Setparam fbs9100Setparam) { |
| | | return service.update61850Param(fbs9100Setparam); |
| | | } |
| | | @ApiOperation(tags = "在线监测-实时监控", value = "在线监测-实时监控-设置61853放电参数设置") |
| | | @PostMapping("update61853Param") |
| | | public Response update61853Param(@RequestBody Fbs9100Setparam fbs9100Setparam) { |
| | | return service.update61853Param(fbs9100Setparam); |
| | | } |
| | | @ApiOperation(tags = "在线监测-实时监控", value = "在线监测-实时监控-设置6186放电参数设置") |
| | | @PostMapping("update6186Param") |
| | | public Response update6186Param(@RequestBody Fbs9100Setparam fbs9100Setparam) { |
| | | return service.update6186Param(fbs9100Setparam); |
| | | } |
| | | @ApiOperation(tags = "在线监测-实时监控", value = "在线监测-实时监控-设置6184放电参数设置") |
| | | @PostMapping("update6184Param") |
| | | public Response update6184Param(@RequestBody Fbs9100Setparam fbs9100Setparam) { |
| | | return service.update6184Param(fbs9100Setparam); |
| | | } |
| | | @ApiOperation(tags = "在线监测-实时监控", value = "在线监测-实时监控-读取6184放电参数") |
| | | @GetMapping("get6184Param") |
| | | public Response get6184Param(@RequestParam int devId, @RequestParam int battGroupNum) { |
| | | return service.get6184Param(devId, battGroupNum); |
| | | } |
| | | |
| | | @ApiOperation(tags = "在线监测-实时监控", value = "在线监测-实时监控-6184设备远程重启") |
| | | @GetMapping("restart6184") |
| | | public Response restart6184(@RequestParam int devId, @RequestParam int battGroupNum) { |
| | | return service.restart6184(devId, battGroupNum); |
| | | } |
| | | |
| | | @ApiOperation(tags = "在线监测-实时监控", value = "在线监测-实时监控-6184远程启动放电测试") |
| | | @GetMapping("startDis6184") |
| | | public Response startDis6184(@RequestParam int devId, @RequestParam int battGroupNum) { |
| | | return service.startDis6184(devId, battGroupNum); |
| | | } |
| | | @ApiOperation(tags = "在线监测-实时监控", value = "在线监测-实时监控-6184启动内阻测试") |
| | | @GetMapping("startRes6184") |
| | | public Response startRes6184(@RequestParam int devId, @RequestParam int battGroupNum) { |
| | | return service.startRes6184(devId, battGroupNum); |
| | | } |
| | | |
| | | @ApiOperation(tags = "在线监测-实时监控", value = "在线监测-实时监控-6184停止内阻测试") |
| | | @GetMapping("stopRes6184") |
| | | public Response stopRes6184(@RequestParam int devId, @RequestParam int battGroupNum) { |
| | | return service.stopRes6184(devId, battGroupNum); |
| | | } |
| | | |
| | | @ApiOperation(tags = "在线监测-实时监控", value = "在线监测-实时监控-6184停止测试") |
| | | @GetMapping("stop6184") |
| | | public Response stop6184(@RequestParam int devId, @RequestParam int battGroupNum) { |
| | | return service.stop6184(devId, battGroupNum); |
| | | } |
| | | |
| | | @ApiOperation(tags = "在线监测-实时监控", value = "在线监测-实时监控-A059发送指令", notes = "Fbs9100_setparamAction_action_updateA059Cmd(新需求A059检测到停电事件也用此接口发送停止命令)") |
| | |
| | | @ApiOperation(tags = "在线监测-实时监控", value = "在线监测-实时监控-读取FBO_4831放电参数") |
| | | @GetMapping("searchFBO4831Param") |
| | | public Response searchFBO4831Param(@RequestParam int opCmd, @RequestParam int devId) { |
| | | return service.searchFBO4830Param(opCmd, devId); |
| | | return service.searchFBO4831Param(opCmd, devId); |
| | | } |
| | | |
| | | @ApiOperation(tags = "在线监测-实时监控", value = "在线监测-实时监控-设置FBO_4831放电参数") |
| | | /* @ApiOperation(tags = "在线监测-实时监控", value = "在线监测-实时监控-设置FBO_4831放电参数") |
| | | @PostMapping("updateFBO4831Param") |
| | | public Response updateFBO4831Param(@RequestBody Fbs9100Setparam a059setParam) { |
| | | return service.updateFBO4830Param(a059setParam); |
| | |
| | | @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); |
| | | } |
| | | |
| | | } |