| | |
| | | // 取水口ID换阀控器地址及通讯协议 |
| | | JSONObject job_rtu = getRtu(intakeId, null); |
| | | if(job_rtu == null) { |
| | | return BaseResponseUtils.buildError(RemoteResultCode.RTU_NOT_EXIST.getMessage()); |
| | | return BaseResponseUtils.buildErrorMsg(RemoteResultCode.RTU_NOT_EXIST.getMessage()); |
| | | } |
| | | String rtuAddr = job_rtu.getString("rtuAddr"); |
| | | String protocol = job_rtu.getString("protocol"); |
| | |
| | | // 取水口ID换阀控器地址及通讯协议 |
| | | //PrController prController = commandSv.getControllerByIntakeId(intakeId); |
| | | //if(prController == null) { |
| | | // return BaseResponseUtils.buildError(RemoteResultCode.RTU_NOT_EXIST.getMessage()); |
| | | // return BaseResponseUtils.buildErrorMsg(RemoteResultCode.RTU_NOT_EXIST.getMessage()); |
| | | //} |
| | | //String rtuAddr = prController.getRtuAddr(); |
| | | //String protocol = prController.getProtocol(); |