| | |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 诺瓦列表 |
| | | * |
| | | * @param baseConditionVO |
| | | * @param keyword |
| | | * @param order |
| | | * @param seq |
| | | * @return |
| | | */ |
| | | public List<LedPlayerEntity> ledPlayerEntityList(BaseConditionVO baseConditionVO, String keyword, Integer order, Integer seq) { |
| | | //排序字段 |
| | | String orderByResult = OrderByEnums.VNNOX_ID.getCode(); |
| | |
| | | String orderBy = orderByResult + " " + orderBySeq; |
| | | |
| | | |
| | | PageHelper.startPage(baseConditionVO.getPageNo(), baseConditionVO.getPageSize(), orderBy); |
| | | if (baseConditionVO != null) { |
| | | PageHelper.startPage(baseConditionVO.getPageNo(), baseConditionVO.getPageSize(), orderBy); |
| | | } |
| | | List<LedPlayerEntity> list; |
| | | //超管 |
| | | if (SecurityUtils.getClientId() == null) { |
| | |
| | | return SpringContextHolder.getBean(VnnoxService.class).setCacheInfo(vnnoxAPIUtil.syncCurrentInfo(list)); |
| | | } |
| | | |
| | | /** |
| | | * 诺瓦列表(用于首页数据统计) |
| | | * |
| | | * @return |
| | | */ |
| | | public List<LedPlayerEntity> ledPlayerEntityListOnHome() { |
| | | List<LedPlayerEntity> list; |
| | | //超管 |
| | | if (SecurityUtils.getClientId() == null) { |
| | | list = ledPlayerEntityMapper.ledPlayerEntityList(null, null); |
| | | } else { |
| | | list = ledPlayerEntityMapper.ledPlayerEntityList(null, SecurityUtils.getUserId()); |
| | | } |
| | | return list == null ? new ArrayList<>() : list; |
| | | } |
| | | |
| | | /** |
| | | * 诺瓦列表(用于绑定) |
| | | * |
| | | * @param keyword |
| | | * @return |
| | | */ |
| | | public List<LedPlayerEntity> ledPlayerEntityListOnBinding(String keyword) { |
| | | |
| | | List<LedPlayerEntity> list; |
| | | //超管 |
| | | if (SecurityUtils.getClientId() == null) { |
| | | list = ledPlayerEntityMapper.ledPlayerEntityListOnBinding(keyword, null); |
| | | } else { |
| | | list = ledPlayerEntityMapper.ledPlayerEntityListOnBinding(keyword, SecurityUtils.getUserId()); |
| | | } |
| | | return SpringContextHolder.getBean(VnnoxService.class).setCacheInfo(vnnoxAPIUtil.syncCurrentInfo(list)); |
| | | } |
| | | |
| | | } |