Browse Source

删除逻辑修改

xiewj 2 years ago
parent
commit
c7f68431d8

+ 3 - 3
720yun_fd_manage/gis_service/src/main/java/com/gis/service/impl/DirServiceImpl.java

@@ -139,10 +139,10 @@ public class DirServiceImpl extends IBaseServiceImpl<DirEntity, Long> implements
         List<WorkEntity> works = workService.getUserWork();
         // 匹配场景码
         for (WorkEntity work : works) {
+            if (StrUtil.isNotBlank(work.getSceneCodes())){
+                continue;
+            }
             for (String sceneCode : sceneCodes) {
-                if (StrUtil.isNotBlank(work.getSceneCodes())){
-                    continue;
-                }
                 if (work.getSceneCodes().contains(sceneCode)){
                     log.error("此场景:{} 被该作品:{} 引用", sceneCode, work.getId());
                     isUser =  true;