suntianwu 3 年 前
コミット
1f0dade522
1 ファイル変更7 行追加0 行削除
  1. 7 0
      src/main/java/com/iden/bms/service/CameraService.java

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

@@ -125,6 +125,13 @@ public class CameraService {
             BeanUtil.copyProperties(idenCamera,resVO);
             resVO.setStatusName(ConnectStatusEnum.getValueToName(resVO.getCode()));
             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 null;