Browse Source

目录增加类型

wuweihao 2 năm trước cách đây
mục cha
commit
d823f1f3bc

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

@@ -417,6 +417,7 @@ public class FodderServiceImpl extends IBaseServiceImpl<FodderEntity, Long> impl
         String searchKey = param.getSearchKey();
         Condition condition = new Condition(DirEntity.class);
         condition.and().andEqualTo("userId", userName);
+        condition.and().andEqualTo("type", param.getType());
         if (StrUtil.isNotBlank(searchKey)){
             searchKey = RegexUtil.sqlReplaceSpecialStr(searchKey);
             condition.and().andLike("name", "%"+searchKey+"%");
@@ -431,7 +432,6 @@ public class FodderServiceImpl extends IBaseServiceImpl<FodderEntity, Long> impl
             BeanUtils.copyProperties(dir, entity);
             entity.setType("dir");
             entity.setDirId(dir.getParentId());
-
             list.add(entity);
         }