| | |
| | | /** |
| | | * 首页灯杆绑定信息 |
| | | */ |
| | | //TODO |
| | | public EquipmentInfomation getBySnAndPlayerSnInfo(String sn) { |
| | | EquipmentInfomation equipmentInfo = new EquipmentInfomation(); |
| | | equipmentInfo.setEquipmentType("诺瓦LED"); |
| | |
| | | } |
| | | |
| | | LedPlayerEntity one = getOne(Wrappers.lambdaQuery(LedPlayerEntity.class).eq(LedPlayerEntity::getSn, sn)); |
| | | if (one == null) { |
| | | return equipmentInfo; |
| | | } |
| | | List<LedPlayerEntity> list = new ArrayList<>(); |
| | | list.add(one); |
| | | List<LedPlayerEntity> ledPlayerEntities = vnnoxAPIUtil.syncCurrentInfo(list); |
| | | Integer onlineStatus = ledPlayerEntities.get(0).getOnlineStatus(); |
| | | if (one != null) { |
| | | equipmentInfo.setEquipmentMac(one.getSn()); |
| | | equipmentInfo.setEquipmentName(one.getName()); |
| | | if (onlineStatus == 0) { |
| | | equipmentInfo.setEquipmentState("在线"); |
| | | } else { |
| | | equipmentInfo.setEquipmentName("离线"); |
| | | } |
| | | } |
| | | |
| | | return equipmentInfo; |