| | |
| | | return temp; |
| | | } |
| | | |
| | | /** |
| | | * 熙讯设备列表(用于首页数据统计) |
| | | * |
| | | * @return |
| | | */ |
| | | public List<PoleLightemitEntity> listLedOnHome() { |
| | | List<PoleLightemitEntity> poleLightemitEntityList; |
| | | //超管 |
| | | if (SecurityUtils.getClientId() == null) { |
| | | poleLightemitEntityList = poleLightemitDao.listLed(null, null, null); |
| | | } else { |
| | | poleLightemitEntityList = poleLightemitDao.listLed(null, SecurityUtils.getUserId(), null); |
| | | } |
| | | |
| | | return poleLightemitEntityList; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 绑定使用 |
| | |
| | | } |
| | | |
| | | PoleLightemitEntity xiXun = getOne(Wrappers.lambdaQuery(PoleLightemitEntity.class).eq(PoleLightemitEntity::getLightemitControlCode, lightControlCode)); |
| | | boolean isScreenOpen = false; |
| | | if (xiXun != null) { |
| | | equipmentInfo.setEquipmentCreateTime(xiXun.getCreateTime()); |
| | | equipmentInfo.setEquipmentMac(xiXun.getLightemitControlCode()); |
| | | equipmentInfo.setEquipmentName(xiXun.getLightemitName()); |
| | | isScreenOpen = lightemitUtils.getLedOnLine(xiXun.getLightemitControlCode()); |
| | | } |
| | | boolean isScreenOpen = lightemitUtils.getLedOnLine(xiXun.getLightemitControlCode()); |
| | | if (isScreenOpen) { |
| | | equipmentInfo.setEquipmentState("在线"); |
| | | } else { |