Browse Source

处理跟目录 和dirId=1 的问题

wuweihao 2 years ago
parent
commit
da94cb2bcb

+ 2 - 1
720yun_fd_manage/gis_service/src/main/java/com/gis/service/impl/FodderServiceImpl.java

@@ -429,7 +429,8 @@ public class FodderServiceImpl extends IBaseServiceImpl<FodderEntity, Long> impl
         builder.append(" and a.user_id='").append(userName).append("'");
         builder.append(" and a.type='").append(type).append("'");
 
-        if (dirId != null){
+        // dirId为空或者为1 :根目录
+        if (dirId != null && dirId > 1){
             builder.append(" and a.dir_id=").append(dirId);
         }