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
5efbf800
Commit
5efbf800
authored
Mar 05, 2020
by
zhangkb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改repo根据标签获取元数据分页接口
parent
1bb3bc61
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
9 deletions
+18
-9
TagCtrl.java
src/main/java/com/keymobile/tagmanager/api/TagCtrl.java
+12
-6
RepoServiceClient.java
...va/com/keymobile/tagmanager/remote/RepoServiceClient.java
+3
-1
TagService.java
...ain/java/com/keymobile/tagmanager/service/TagService.java
+3
-2
No files found.
src/main/java/com/keymobile/tagmanager/api/TagCtrl.java
View file @
5efbf800
...
...
@@ -265,12 +265,18 @@ public class TagCtrl {
@ApiOperation
(
value
=
"根据用户授予的数据权限加载标签元数据"
,
notes
=
"根据用户授予的数据权限加载标签元数据"
)
@PostMapping
(
value
=
"/getByTagWithPrivilege"
)
public
Map
<
String
,
Object
>
getTagMetadataWithDataPrivilege
(
@RequestParam
String
dimensionType
,
@RequestParam
String
idPath
,
@RequestParam
(
required
=
false
)
String
keyword
,
@RequestParam
(
required
=
false
)
String
modelPath
,
@RequestParam
int
pageNum
,
@RequestParam
int
pageSize
,
@RequestParam
String
tagType
)
throws
Exception
{
return
tagService
.
getTagMetadataWithDataPrivilege
(
dimensionType
,
idPath
,
keyword
,
modelPath
,
pageNum
,
pageSize
,
tagType
);
public
Map
<
String
,
Object
>
getTagMetadataWithDataPrivilege
(
@RequestParam
String
dimensionType
,
@RequestParam
String
idPath
,
@RequestParam
(
required
=
false
)
String
keyword
,
@RequestParam
(
required
=
false
)
String
startDate
,
@RequestParam
(
required
=
false
)
String
endDate
,
@RequestParam
(
required
=
false
)
String
modelPath
,
@RequestParam
int
pageNum
,
@RequestParam
int
pageSize
,
@RequestParam
String
tagType
)
throws
Exception
{
return
tagService
.
getTagMetadataWithDataPrivilege
(
dimensionType
,
idPath
,
keyword
,
startDate
,
endDate
,
modelPath
,
pageNum
,
pageSize
,
tagType
);
}
...
...
src/main/java/com/keymobile/tagmanager/remote/RepoServiceClient.java
View file @
5efbf800
...
...
@@ -28,7 +28,9 @@ public interface RepoServiceClient {
@RequestParam
String
idPath
,
@RequestParam
String
tagType
,
@RequestParam
String
dimensionType
,
@RequestParam
(
required
=
false
)
String
keyword
,
@RequestParam
(
required
=
false
)
String
keyword
,
@RequestParam
(
required
=
false
)
String
startDate
,
@RequestParam
(
required
=
false
)
String
endDate
,
@RequestParam
int
pageNum
,
@RequestParam
int
pageSize
);
...
...
src/main/java/com/keymobile/tagmanager/service/TagService.java
View file @
5efbf800
...
...
@@ -717,13 +717,14 @@ public class TagService {
//根据授予的元数据数据权限过滤标签关联的元数据
@SuppressWarnings
(
"unchecked"
)
public
Map
<
String
,
Object
>
getTagMetadataWithDataPrivilege
(
String
dimensionType
,
String
idPath
,
String
keyword
,
String
modelPath
,
int
pageNum
,
int
pageSize
,
String
tagType
)
throws
Exception
{
String
keyword
,
String
startDate
,
String
endDate
,
String
modelPath
,
int
pageNum
,
int
pageSize
,
String
tagType
)
throws
Exception
{
//获取用户关联的数据权限
Map
<
Long
,
Set
<
String
>>
systemTagMap
=
GrantedAuthHelper
.
getDataPrivileges
();
logger
.
info
(
"tag metadata user privilege:"
+
systemTagMap
);
//调用repo接口获取标签关联的元数据
Map
<
String
,
Object
>
tagData
=
repoService
.
getPageByTag
(
systemTagMap
,
modelPath
,
idPath
,
tagType
,
dimensionType
,
keyword
,
pageNum
,
pageSize
);
tagType
,
dimensionType
,
keyword
,
startDate
,
endDate
,
pageNum
,
pageSize
);
tagData
.
put
(
"systemTagMap"
,
systemTagMap
);
List
<
Map
<
String
,
Object
>>
content
=
(
List
<
Map
<
String
,
Object
>>)
tagData
.
get
(
"content"
);
//判断不是个人标签
...
...
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