suntianwu 3 gadi atpakaļ
vecāks
revīzija
1f0dade522

+ 7 - 0
src/main/java/com/iden/bms/service/CameraService.java

@@ -125,6 +125,13 @@ public class CameraService {
             BeanUtil.copyProperties(idenCamera,resVO);
             BeanUtil.copyProperties(idenCamera,resVO);
             resVO.setStatusName(ConnectStatusEnum.getValueToName(resVO.getCode()));
             resVO.setStatusName(ConnectStatusEnum.getValueToName(resVO.getCode()));
             resVO.setTypeName(CameraTypeEnum.getValueToName(resVO.getType()));
             resVO.setTypeName(CameraTypeEnum.getValueToName(resVO.getType()));
+            Long communityId1 = resVO.getCommunityId();
+            if(communityId1 != null){
+                IdenCommunity idenCommunity = this.idenCommunityService.getById(communityId1);
+                if(idenCommunity != null ){
+                    resVO.setCommunityName(idenCommunity.getName());
+                }
+            }
             return resVO;
             return resVO;
         }
         }
         return null;
         return null;