소스 검색

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

wuweihao 2 년 전
부모
커밋
da94cb2bcb
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      720yun_fd_manage/gis_service/src/main/java/com/gis/service/impl/FodderServiceImpl.java

+ 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);
         }