| | |
| | | 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") |
| | | public Response serchdevParam(@RequestParam int devId){ |
| | | return service.serchdevParam(devId); |
| | | @ApiOperation(value = "查询设备的参数", notes = "等10s响应") |
| | | @GetMapping("serchdevParam") |
| | | public Response serchdevParam(@RequestParam int devId) { |
| | | return service.serchdevParam(devId); |
| | | } |
| | | |
| | | @ApiOperation(tags = "在线监测-实时监控",value = "在线监测-实时监控-BTS停止") |
| | | @ApiOperation(tags = "在线监测-实时监控", value = "在线监测-实时监控-BTS停止") |
| | | @GetMapping("serchbyDev_id") |
| | | public Response serchbyDev_id(@RequestParam int num, Integer testCmd,@RequestParam int devId){ |
| | | return service.serchbyDev_id(num,testCmd,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) { |
| | | return service.serchbyDev_id_li9130(num, testCmd, devId, battGroupNum); |
| | | } |
| | | |
| | | @ApiOperation(tags = "在线监测-实时监控",value = "在线监测-实时监控-重启设备") |
| | | @ApiOperation(tags = "在线监测-实时监控", value = "在线监测-实时监控-重启设备") |
| | | @PostMapping("updateMaintain") |
| | | public Response updateMaintain(@RequestBody Fbs9100Setparam fbs9100Setparam){ |
| | | public Response updateMaintain(@RequestBody Fbs9100Setparam fbs9100Setparam) { |
| | | return service.updateMaintain(fbs9100Setparam); |
| | | } |
| | | @ApiOperation(tags = "在线监测-实时监控",value = "在线监测-实时监控-BTS放电参数设置",notes = "Fbs9100_setparamAction_action_update") |
| | | |
| | | @ApiOperation(tags = "在线监测-实时监控", value = "在线监测-实时监控-BTS放电参数设置", notes = "Fbs9100_setparamAction_action_update") |
| | | @PostMapping("update") |
| | | public Response update(@RequestBody Fbs9100Setparam fbs9100Setparam){ |
| | | public Response update(@RequestBody Fbs9100Setparam fbs9100Setparam) { |
| | | return service.update(fbs9100Setparam); |
| | | } |
| | | |
| | | @ApiOperation(tags = "在线监测-实时监控",value = "在线监测-实时监控-61850放电参数设置",notes = "Fbs9100_setparamAction_action_update61850Param") |
| | | @ApiOperation(tags = "在线监测-实时监控", value = "在线监测-实时监控-61850放电参数设置", notes = "Fbs9100_setparamAction_action_update61850Param") |
| | | @PostMapping("update61850Param") |
| | | public Response update61850Param(@RequestBody Fbs9100Setparam fbs9100Setparam){ |
| | | 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 = "在线监测-实时监控-A059发送指令",notes = "Fbs9100_setparamAction_action_updateA059Cmd") |
| | | @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检测到停电事件也用此接口发送停止命令)") |
| | | @GetMapping("updateA059Cmd") |
| | | public Response updateA059Cmd(@RequestParam int opCmd,@RequestParam int devId){ |
| | | return service.updateA059Cmd(opCmd,devId); |
| | | public Response updateA059Cmd(@RequestParam int opCmd, @RequestParam int devId) { |
| | | return service.updateA059Cmd(opCmd, devId); |
| | | } |
| | | @ApiOperation(tags = "在线监测-实时监控",value = "在线监测-实时监控-读取FGCD_A059放电参数",notes = "Fbs9100_setparamAction_action_searchA059Param") |
| | | |
| | | @ApiOperation(tags = "在线监测-实时监控", value = "在线监测-实时监控-读取FGCD_A059放电参数", notes = "Fbs9100_setparamAction_action_searchA059Param") |
| | | @GetMapping("searchA059Param") |
| | | public Response searchA059Param(@RequestParam int opCmd,@RequestParam int devId){ |
| | | return service.searchA059Param(opCmd,devId); |
| | | public Response searchA059Param(@RequestParam int opCmd, @RequestParam int devId) { |
| | | return service.searchA059Param(opCmd, devId); |
| | | } |
| | | @ApiOperation(tags = "在线监测-实时监控",value = "在线监测-实时监控-设置FGCD_A059放电参数",notes = "Fbs9100_setparamAction_action_updateA059Param") |
| | | |
| | | @ApiOperation(tags = "在线监测-实时监控", value = "在线监测-实时监控-设置FGCD_A059放电参数", notes = "Fbs9100_setparamAction_action_updateA059Param") |
| | | @PostMapping("updateA059Param") |
| | | public Response updateA059Param(@RequestBody Fbs9100Setparam a059setParam){ |
| | | public Response updateA059Param(@RequestBody Fbs9100Setparam a059setParam) { |
| | | return service.updateA059Param(a059setParam); |
| | | } |
| | | @ApiOperation(tags = "在线监测-实时监控",value = "在线监测-实时监控-一体机拓扑图界面添加一个温度报警的设置值",notes = "Fbs9100_setparamAction_action_serchCharHighTmp") |
| | | |
| | | @ApiOperation(tags = "在线监测-实时监控", value = "在线监测-实时监控-设置FGCD_A059放电参数(二期)" |
| | | , notes = "DCVolHighLimit,MonVolHightLimit,MonVolHightLimitCount,ChargeCurrSet,AutoTestStartVol,onlinevolLow,CharTimeLong,FloatCharTimeLong,CharSotpCurr不要了") |
| | | @PostMapping("updateA059ParamPhaseII") |
| | | public Response updateA059ParamPhaseII(@RequestBody Fbs9100Setparam a059setParam) { |
| | | return service.updateA059ParamPhaseII(a059setParam); |
| | | } |
| | | |
| | | @ApiOperation(tags = "在线监测-实时监控", value = "在线监测-实时监控-一体机拓扑图界面添加一个温度报警的设置值", notes = "Fbs9100_setparamAction_action_serchCharHighTmp") |
| | | @GetMapping("serchCharHighTmp") |
| | | public Response serchCharHighTmp(@RequestParam int devId){ |
| | | public Response serchCharHighTmp(@RequestParam int devId) { |
| | | return service.serchCharHighTmp(devId); |
| | | } |
| | | |
| | | @ApiOperation(tags = "在线监测-实时监控",value = "在线监测-实时监控-开始/停止显示FGCD_A059图片",notes = "Fbs9100_setparamAction_action_StartOrStopShowPic") |
| | | @ApiOperation(tags = "在线监测-实时监控", value = "在线监测-实时监控-开始/停止显示FGCD_A059图片", notes = "Fbs9100_setparamAction_action_StartOrStopShowPic") |
| | | @GetMapping("StartOrStopShowPic") |
| | | public Response StartOrStopShowPic(@RequestParam int devId,@RequestParam int opCmd){ |
| | | return service.StartOrStopShowPic(devId,opCmd); |
| | | public Response StartOrStopShowPic(@RequestParam int devId, @RequestParam int opCmd) { |
| | | return service.StartOrStopShowPic(devId, opCmd); |
| | | } |
| | | @ApiOperation(tags = "在线监测-实时监控",value = "在线监测-实时监控-设置FGCD_A059当前电池组",notes = "Fbs9100_setparamAction_action_SetNowBatt") |
| | | |
| | | @ApiOperation(tags = "在线监测-实时监控", value = "在线监测-实时监控-设置FGCD_A059当前电池组", notes = "Fbs9100_setparamAction_action_SetNowBatt") |
| | | @GetMapping("SetNowBatt") |
| | | public Response SetNowBatt(@RequestParam int devId,@RequestParam int opCmd,@RequestParam int battGroupNum){ |
| | | return service.SetNowBatt(devId,opCmd,battGroupNum); |
| | | public Response SetNowBatt(@RequestParam int devId, @RequestParam int opCmd, @RequestParam int battGroupNum) { |
| | | return service.SetNowBatt(devId, opCmd, battGroupNum); |
| | | } |
| | | |
| | | @ApiOperation(tags = "电操开关遥调遥控点位",value = "设置参数") |
| | | @PostMapping("updateEOperatingSwitchParam") |
| | | public Response updateEOperatingSwitchParam(@RequestBody Fbs9100Setparam fbs9100Setparam){ |
| | | return service.updateEOperatingSwitch(fbs9100Setparam); |
| | | } |
| | | |
| | | @ApiOperation(tags = "电操开关遥调遥控点位",value = "读取参数") |
| | | @PostMapping("getEOperatingSwitchParam") |
| | | public Response getEOperatingSwitchParam(@RequestParam int devId,@RequestParam int battGroupNum){ |
| | | return service.getEOperatingSwitch(devId,battGroupNum); |
| | | } |
| | | |
| | | @ApiOperation(tags = "电操开关遥调遥控点位",value = "启动测试") |
| | | @PostMapping("updateEOperatingSwitchStart") |
| | | public Response updateEOperatingSwitchStart(@RequestBody Fbs9100Setparam fbs9100Setparam){ |
| | | return service.updateEOperatingSwitchStart(fbs9100Setparam); |
| | | } |
| | | |
| | | @ApiOperation(tags = "电操开关遥调遥控点位", value = "停止测试") |
| | | @PostMapping("updateEOperatingSwitchStop") |
| | | public Response updateEOperatingSwitchStop(@RequestBody Fbs9100Setparam fbs9100Setparam) { |
| | | return service.updateEOperatingSwitchStop(fbs9100Setparam); |
| | | } |
| | | |
| | | @ApiOperation(tags = "电操开关遥调遥控点位", value = "电操开关控制") |
| | | @PostMapping("updateEOperatingSwitchControl") |
| | | public Response updateEOperatingSwitchControl(@RequestBody Fbs9100Setparam fbs9100Setparam) { |
| | | return service.updateEOperatingSwitchControl(fbs9100Setparam); |
| | | } |
| | | |
| | | @ApiOperation(tags = "在线监测-实时监控", value = "在线监测-实时监控-读取FBO_4830放电参数") |
| | | @GetMapping("searchFBO4830Param") |
| | | public Response searchFBO4830Param(@RequestParam int opCmd, @RequestParam int devId) { |
| | | return service.searchFBO4830Param(opCmd, devId); |
| | | } |
| | | |
| | | @ApiOperation(tags = "在线监测-实时监控", value = "在线监测-实时监控-设置FBO_4830放电参数") |
| | | @PostMapping("updateFBO4830Param") |
| | | public Response updateFBO4830Param(@RequestBody Fbs9100Setparam a059setParam) { |
| | | return service.updateFBO4830Param(a059setParam); |
| | | } |
| | | |
| | | @ApiOperation(tags = "在线监测-实时监控", value = "在线监测-实时监控-控制FBO_4830充放电停止") |
| | | @GetMapping("controllerFBO4830") |
| | | public Response controllerFBO4830(@RequestParam int opCmd, @RequestParam int devId) { |
| | | 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 searchKgdyParam(@RequestParam int opCmd, @RequestParam int devId) { |
| | | return service.searchKgdyParam(opCmd, devId); |
| | | } |
| | | |
| | | @ApiOperation(tags = "在线监测-实时监控", value = "在线监测-实时监控-设置kgdy放电参数") |
| | | @PostMapping("updateKgdyParam") |
| | | 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); |
| | | } |
| | | |
| | | } |