Commit a0d99a27 by zhangkb

添加获取所有维度根目录标签接口

parent 1f338220
......@@ -303,6 +303,12 @@ public class TagCtrl {
return tagService.getAllDimensionTag();
}
@ApiOperation(value = "(2020-7-21)获取所有根目录维度标签", notes = "(2020-7-21)获取所有根目录维度标签")
@PostMapping(value = "/getAllDimensionRootTag")
public List<Tag> getAllDimensionRootTag(){
return tagService.getDimensionRootTag();
}
//---------------以下为导入系统的时候用到------------------
@ApiOperation(value = "查询系统标签", notes = "查询系统标签")
@GetMapping(value = "/listSystems")
......
......@@ -14,4 +14,6 @@ public interface TagRepository extends MongoRepository<Tag, String> {
public List<Tag> findByIdPathLikeAndNameLike(String idPath,String tagName);
public List<Tag> findByIdIn(List<String> ids);
public List<Tag> findByLevelAndTagTypeAndDimensionType(Integer level,String tagType,String dimensionType);
}
......@@ -943,7 +943,10 @@ public class TagService {
return false;
}
//author:zhangkb time:2020-7-21 desc:获取维度标签根目录
public List<Tag> getDimensionRootTag(){
return tagRepository.findByLevelAndTagTypeAndDimensionType(1, "1", "1");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment