| | |
| | | myParam.setParam(param); |
| | | myParam.setRtuResultSendWebUrl(rtuCallbackUrl_wx); |
| | | myParam.setOperator(operator); |
| | | return dealWithCommandResult(myParam); |
| | | //return dealWithCommandResult(myParam); |
| | | |
| | | BaseResponse<Boolean> result = dealWithCommandResult(myParam); |
| | | // 如果命令执行失败,则再次执行命令 |
| | | if(!result.isSuccess()) { |
| | | result = dealWithCommandResult(myParam); |
| | | } |
| | | return result; |
| | | } else { |
| | | return BaseResponseUtils.buildErrorMsg("系统暂不支持该协议"); |
| | | } |
| | |
| | | myParam.setParam(param); |
| | | myParam.setRtuResultSendWebUrl(rtuCallbackUrl_wx); |
| | | myParam.setOperator(operator); |
| | | return dealWithCommandResult(myParam); |
| | | //return dealWithCommandResult(myParam); |
| | | |
| | | BaseResponse<Boolean> result = dealWithCommandResult(myParam); |
| | | // 如果命令执行失败,则再次执行命令 |
| | | if(!result.isSuccess()) { |
| | | result = dealWithCommandResult(myParam); |
| | | } |
| | | return result; |
| | | } else { |
| | | return BaseResponseUtils.buildErrorMsg("系统暂不支持该协议"); |
| | | } |
| | |
| | | myParam.setParam(param); |
| | | myParam.setRtuResultSendWebUrl(rtuCallbackUrl_wx); |
| | | myParam.setOperator(operator); |
| | | return dealWithCommandResult(myParam); |
| | | //return dealWithCommandResult(myParam); |
| | | |
| | | BaseResponse<Boolean> result = dealWithCommandResult(myParam); |
| | | // 如果命令执行失败,则再次执行命令 |
| | | if(!result.isSuccess()) { |
| | | result = dealWithCommandResult(myParam); |
| | | } |
| | | return result; |
| | | } else { |
| | | return BaseResponseUtils.buildErrorMsg("系统暂不支持该协议"); |
| | | } |