| | |
| | | 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检测到停电事件也用此接口发送停止命令)") |
| | |
| | | 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); |
| | | } |
| | | |
| | | } |