| | |
| | | package com.sandu.ximon.admin.service; |
| | | |
| | | import cn.hutool.core.collection.CollectionUtil; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.github.pagehelper.PageHelper; |
| | | import com.sandu.common.execption.BusinessException; |
| | |
| | | } else { |
| | | list = ledPlayerEntityMapper.ledPlayerEntityList(keyword, SecurityUtils.getUserId()); |
| | | } |
| | | return SpringContextHolder.getBean(VnnoxService.class).setCacheInfo(vnnoxAPIUtil.syncCurrentInfo(list)); |
| | | List<List<LedPlayerEntity>> split = CollectionUtil.split(list, 100); |
| | | |
| | | List<LedPlayerEntity> ledPlayerEntities=null; |
| | | for (List<LedPlayerEntity> splist : split) { |
| | | List<LedPlayerEntity> ledPlayerEntitie = SpringContextHolder.getBean(VnnoxService.class).setCacheInfo(vnnoxAPIUtil.syncCurrentInfo(splist)); |
| | | if (ledPlayerEntitie != null) { |
| | | ledPlayerEntities.addAll(ledPlayerEntitie); |
| | | } |
| | | } |
| | | return ledPlayerEntities; |
| | | } |
| | | |
| | | // public List<LedPlayerEntity> ledPlayerEntityList() { |
| | | // List<LedPlayerEntity> list; |
| | | // //超管 |
| | | // if (SecurityUtils.getClientId() == null) { |
| | | // list = ledPlayerEntityMapper.ledPlayerEntityList(null, null); |
| | | // } else { |
| | | // list = ledPlayerEntityMapper.ledPlayerEntityList(null, SecurityUtils.getUserId()); |
| | | // } |
| | | // return SpringContextHolder.getBean(VnnoxService.class).setCacheInfo(vnnoxAPIUtil.syncCurrentInfo(list)); |
| | | // } |
| | | } |