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
a13be4fc
Commit
a13be4fc
authored
Jan 16, 2020
by
zhangkb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改标签元数据导入接口
parent
86e05bce
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
RepoServiceClient.java
...va/com/keymobile/tagmanager/remote/RepoServiceClient.java
+2
-3
TagFileService.java
...java/com/keymobile/tagmanager/service/TagFileService.java
+1
-1
No files found.
src/main/java/com/keymobile/tagmanager/remote/RepoServiceClient.java
View file @
a13be4fc
...
@@ -5,7 +5,6 @@ import java.util.Map;
...
@@ -5,7 +5,6 @@ import java.util.Map;
import
org.springframework.cloud.openfeign.FeignClient
;
import
org.springframework.cloud.openfeign.FeignClient
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RequestParam
;
@FeignClient
(
name
=
"MetadataRepo"
)
@FeignClient
(
name
=
"MetadataRepo"
)
...
@@ -23,6 +22,6 @@ public interface RepoServiceClient {
...
@@ -23,6 +22,6 @@ public interface RepoServiceClient {
@RequestParam
String
namePath
);
@RequestParam
String
namePath
);
@PostMapping
(
value
=
"/rest/tag/addTag"
)
@PostMapping
(
value
=
"/rest/tag/addTag"
)
public
void
addTag
(
@RequestParam
String
dimensionType
,
@RequestParam
String
idPath
,
public
int
addTag
(
@RequestParam
List
<
String
>
metadataIds
,
@RequestParam
String
idPath
,
@Request
Body
List
<
String
>
metadataIds
,
@RequestParam
String
tag
Type
);
@Request
Param
String
tagType
,
@RequestParam
String
dimension
Type
);
}
}
src/main/java/com/keymobile/tagmanager/service/TagFileService.java
View file @
a13be4fc
...
@@ -255,7 +255,7 @@ public class TagFileService {
...
@@ -255,7 +255,7 @@ public class TagFileService {
}
}
if
(!
successIds
.
isEmpty
())
{
if
(!
successIds
.
isEmpty
())
{
//调用repo接口批量打元数据标签
//调用repo接口批量打元数据标签
repoService
.
addTag
(
dimensionType
,
idPath
,
successIds
,
tag
Type
);
repoService
.
addTag
(
successIds
,
idPath
,
tagType
,
dimension
Type
);
}
}
excelImportResult
.
getFailList
().
forEach
(
tag
->
{
excelImportResult
.
getFailList
().
forEach
(
tag
->
{
importLog
.
appendErrorMsg
(
String
.
format
(
"第%s行, %s"
,
tag
.
getRowNum
()
+
params
.
getTitleRows
()
+
params
.
getReadRows
(),
tag
.
getErrorMsg
()));
importLog
.
appendErrorMsg
(
String
.
format
(
"第%s行, %s"
,
tag
.
getRowNum
()
+
params
.
getTitleRows
()
+
params
.
getReadRows
(),
tag
.
getErrorMsg
()));
...
...
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