瀏覽代碼

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

wuweihao 2 年之前
父節點
當前提交
67e1972317

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

@@ -410,7 +410,7 @@ public class FodderServiceImpl extends IBaseServiceImpl<FodderEntity, Long> impl
                 "null as file_name, null as file_size,null as scene_code,null as dpi,null as temp_id,parent_id as dir_id, null as dirName from tb_dir where is_delete=0") ;
         builder.append(" and user_id='").append(userName).append("'");
         builder.append(" and type='").append(type).append("'");
-        if (dirId != null){
+        if (dirId != null && dirId > 1){
             builder.append(" and parent_id=").append(dirId);
         }