Browse Source

tip: 优化

lvxianyun 3 years ago
parent
commit
90952bf1ae

+ 1 - 2
src/main/java/com/persagy/proxy/object/service/impl/AdmSpaceServiceImpl.java

@@ -355,8 +355,7 @@ public class AdmSpaceServiceImpl extends AbstractAdmBaseServiceImpl<AdmSpace> im
             vos.forEach(admSpace -> {
                 //处理建筑 楼层信息点
                 int removeflBd = 0 ;//关系处理 0:不删除; 1:删除bd; 2:删除fl; 3:都删除;
-                List<String> nullList = CollUtil.newArrayList();
-                nullList.addAll(admSpace.getNullList());
+                List<String> nullList = CollUtil.newArrayList(admSpace.getNullList());
                 if(CollUtil.isNotEmpty(nullList)){
                    if(nullList.contains("flowBuild")){
                        removeflBd = 3;