| | |
| | | * 同步终端 |
| | | */ |
| | | public void synchTerminal() { |
| | | List<BroadcastTerminalV2Entity> server = broadcastTerminalV2EntityMapper.listAll(""); |
| | | List<BroadcastTerminalV2Entity> server; |
| | | //为空是超管 |
| | | if (SecurityUtils.getClientId() == null) { |
| | | server = broadcastTerminalV2EntityMapper.listAll(null); |
| | | } else { |
| | | server = broadcastTerminalV2EntityMapper.listAll(SecurityUtils.getUserId()); |
| | | } |
| | | |
| | | List<TerminalVO> list = TerminalAPIUtils.getTerminalList(); |
| | | System.out.println(list); |
| | | list.stream().forEach(item -> { |
| | |
| | | } |
| | | |
| | | //在线状态全部的话需要分页 |
| | | if (2 == broadcastTerminalV2Param.getWorkState()) { |
| | | if (baseConditionVO != null && 2 == broadcastTerminalV2Param.getWorkState()) { |
| | | PageHelper.startPage(baseConditionVO.getPageNo(), baseConditionVO.getPageSize()); |
| | | } |
| | | |