Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tagManager
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lanmw
tagManager
Commits
a0d99a27
Commit
a0d99a27
authored
Jul 21, 2020
by
zhangkb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加获取所有维度根目录标签接口
parent
1f338220
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
1 deletion
+12
-1
TagCtrl.java
src/main/java/com/keymobile/tagmanager/api/TagCtrl.java
+6
-0
TagRepository.java
...a/com/keymobile/tagmanager/persistence/TagRepository.java
+2
-0
TagService.java
...ain/java/com/keymobile/tagmanager/service/TagService.java
+4
-1
No files found.
src/main/java/com/keymobile/tagmanager/api/TagCtrl.java
View file @
a0d99a27
...
...
@@ -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"
)
...
...
src/main/java/com/keymobile/tagmanager/persistence/TagRepository.java
View file @
a0d99a27
...
...
@@ -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
);
}
src/main/java/com/keymobile/tagmanager/service/TagService.java
View file @
a0d99a27
...
...
@@ -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"
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment