| | |
| | | protected static String controllerType = "57"; |
| | | |
| | | /** |
| | | * 查询所有RTU在线情况 |
| | | * 查询所有RTU在线情况(仅测试用) |
| | | * @return |
| | | */ |
| | | @GetMapping(path = "get_online") |
| | |
| | | } |
| | | |
| | | /** |
| | | * 根据操作员获取常用取水口 |
| | | * @param operator |
| | | * @return |
| | | */ |
| | | @GetMapping(path = "used_intakes") |
| | | @SsoAop() |
| | | public BaseResponse<List<VoOnLineIntake>> getUsedIntakes(Long operator) { |
| | | try { |
| | | List<VoOnLineIntake> res = commandSv.getUsedIntakes(operator); |
| | | return BaseResponseUtils.buildSuccess(res); |
| | | } catch (Exception e) { |
| | | log.error("查询取水口异常", e); |
| | | return BaseResponseUtils.buildException(e.getMessage()); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 设置设备终端地址 |
| | | * @param addr 设置设备终端地址传入对象 |
| | | * @param bindingResult |