魏熙美 6 vuotta sitten
vanhempi
commit
1b9cb40493

+ 5
- 1
CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/MonitoringServiceImpl.java Näytä tiedosto

@@ -63,6 +63,9 @@ public class MonitoringServiceImpl implements IMonitoringService {
63 63
     @Autowired
64 64
     private YinShiProperties yinShiProperties;
65 65
 
66
+    @Autowired
67
+    private ToCommunitiesMapper toCommunitiesMapper;
68
+
66 69
     @Override
67 70
     public ResponseBean getByCommunityId(Integer communityId,Integer pageNo, Integer pageSize) {
68 71
 
@@ -182,6 +185,7 @@ public class MonitoringServiceImpl implements IMonitoringService {
182 185
     public ResponseBean getIntercomHLS(UserElement userElement) {
183 186
         ResponseBean responseBean = new ResponseBean();
184 187
 
188
+        ToCommunities toCommunities = toCommunitiesMapper.selectByPrimaryKey(userElement.getCommunityId());
185 189
         TpUnit tpUnit = tpUnitMapper.selectByPrimaryKey(userElement.getUnitId());
186 190
 
187 191
         /**
@@ -225,7 +229,7 @@ public class MonitoringServiceImpl implements IMonitoringService {
225 229
         map.put("url", tpConfiguration.getConfigurationValue());
226 230
         // 高清视频流地址
227 231
         map.put("url_high", tpConfiguration.getKey());
228
-        map.put("address", tpUnit.getPhaseName() + tpUnit.getBuildingName() + tpUnit.getName());
232
+        map.put("address", toCommunities.getCommunityName() + tpUnit.getPhaseName() + tpUnit.getBuildingName() + tpUnit.getName());
229 233
         map.put("token", tpEquipment.getOpUserUuid());
230 234
         responseBean.addSuccess(map);
231 235
         return responseBean;