| | |
| | | import com.sandu.ximon.admin.utils.StoreOperationRecordsUtils; |
| | | import com.sandu.ximon.admin.utils.VnnoxAPIUtil; |
| | | import com.sandu.ximon.admin.vo.EquipmentInfomation; |
| | | import com.sandu.ximon.dao.bo.LEDNovaGroupListBo; |
| | | import com.sandu.ximon.dao.domain.LedPlayerEntity; |
| | | import com.sandu.ximon.dao.enums.OrderByEnums; |
| | | import com.sandu.ximon.dao.mapper.LedPlayerEntityMapper; |
| | |
| | | */ |
| | | public EquipmentInfomation getBySnAndPlayerSnInfo(String sn) { |
| | | EquipmentInfomation equipmentInfo = new EquipmentInfomation(); |
| | | equipmentInfo.setEquipmentType("诺瓦LED"); |
| | | equipmentInfo.setEquipmentType("NLED"); |
| | | if (sn == null || sn.trim().length() == 0) { |
| | | return equipmentInfo; |
| | | } |
| | |
| | | * @param seq |
| | | * @return |
| | | */ |
| | | public List<LedPlayerEntity> ledPlayerEntityList(BaseConditionVO baseConditionVO, String keyword, Integer order, Integer seq) { |
| | | public List<LedPlayerEntity> ledPlayerEntityList(BaseConditionVO baseConditionVO, String keyword, Integer order, Integer seq, Long groupId) { |
| | | //排序字段 |
| | | String orderByResult = OrderByEnums.VNNOX_ID.getCode(); |
| | | //正序、倒叙 |
| | |
| | | List<LedPlayerEntity> list; |
| | | //超管 |
| | | if (SecurityUtils.getClientId() == null) { |
| | | list = ledPlayerEntityMapper.ledPlayerEntityList(keyword, null); |
| | | list = ledPlayerEntityMapper.ledListByGroupId(keyword, null, groupId); |
| | | } else { |
| | | list = ledPlayerEntityMapper.ledPlayerEntityList(keyword, SecurityUtils.getUserId()); |
| | | list = ledPlayerEntityMapper.ledListByGroupId(keyword, SecurityUtils.getUserId(), groupId); |
| | | } |
| | | return SpringContextHolder.getBean(VnnoxService.class).setCacheInfo(vnnoxAPIUtil.syncCurrentInfo(list)); |
| | | } |
| | |
| | | return SpringContextHolder.getBean(VnnoxService.class).setCacheInfo(vnnoxAPIUtil.syncCurrentInfo(list)); |
| | | } |
| | | |
| | | /** |
| | | * 获取整组的屏幕 |
| | | * |
| | | * @param groupId |
| | | */ |
| | | public List<LEDNovaGroupListBo> getListByGroupId(Long groupId) { |
| | | List<LEDNovaGroupListBo> listByGroupId = baseMapper.getListByGroupId(groupId, SecurityUtils.getClientId()); |
| | | listByGroupId.forEach( |
| | | bo -> { |
| | | if (bo.getName() == null || bo.getName().equals("")) { |
| | | bo.setName(bo.getPlayerName()); |
| | | } |
| | | } |
| | | ); |
| | | return listByGroupId; |
| | | } |
| | | } |