Browse Source

修复 bug

魏熙美 6 years ago
parent
commit
1b9cb40493

+ 5
- 1
CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/MonitoringServiceImpl.java View File

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