| | |
| | | return this.clock(com) ; |
| | | }else if(code.equals(CodeLocal.onLine)){ |
| | | return this.onLine(com) ; |
| | | }else if(code.equals(CodeLocal.onLineStatistics)){ |
| | | return this.onLineStateStatistics(com) ; |
| | | }else if(code.equals(CodeLocal.allProtocols)){ |
| | | return this.allProtocols(com) ; |
| | | }else if(code.equals(CodeLocal.stopTcpSv)){ |
| | |
| | | } |
| | | |
| | | /** |
| | | * 统计在线与不在线情况 |
| | | * @throws Exception |
| | | */ |
| | | private Command onLineStateStatistics(Command command) throws Exception{ |
| | | RtuOnLineStateStatisticsVo vo = new RtuOnLineStateStatisticsDeal().deal() ; |
| | | return ReturnCommand.successed("查询所有测站在线情况结果", command.getId(), command.getCode(), vo) ; |
| | | } |
| | | |
| | | /** |
| | | * 查询所有RTU协议配置 |
| | | * @throws Exception |
| | | */ |