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
6196543c
Commit
6196543c
authored
Sep 27, 2020
by
zhangkb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改批量打元数据标签接口
parent
33a3bfd7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
8 deletions
+3
-8
TagFileService.java
...java/com/keymobile/tagmanager/service/TagFileService.java
+3
-8
No files found.
src/main/java/com/keymobile/tagmanager/service/TagFileService.java
View file @
6196543c
...
...
@@ -366,11 +366,6 @@ public class TagFileService {
importExcelMore
(
inputStream
,
TagMetadata
.
class
,
params
);
List
<
String
>
successIds
=
new
ArrayList
<>();
List
<
TagMetadata
>
tagMetadatas
=
excelImportResult
.
getList
();
//author:zhangkb time:2020-3-16 desc:元数据路径加上领域
for
(
TagMetadata
tagMd:
tagMetadatas
)
{
String
metaPath
=
"0,"
+
tagMd
.
getMetaName
();
tagMd
.
setMetaName
(
metaPath
);
}
for
(
TagMetadata
tagMetadata
:
tagMetadatas
)
{
//判断元数据名称是否在repo存在
String
claz
=
null
;
...
...
@@ -381,8 +376,8 @@ public class TagFileService {
claz
=
"Catalog,Database,Schema,HanaView"
;
}
Map
<
String
,
Object
>
meta
=
repoService
.
getMetaByNamePathAndClass
(
claz
,
tagMetadata
.
getMetaName
());
if
(
meta
.
isEmpty
()
)
{
"0,"
+
tagMetadata
.
getMetaName
());
if
(
meta
==
null
)
{
importLog
.
appendErrorMsg
(
String
.
format
(
"第%s行, 元数据名为[%s]的元数据不存在"
,
tagMetadata
.
getRowNum
(),
tagMetadata
.
getMetaName
()));
hasOtherFail
=
true
;
...
...
@@ -431,7 +426,7 @@ public class TagFileService {
claz
=
"Catalog,Database,Schema,HanaView"
;
}
Map
<
String
,
Object
>
meta
=
repoService
.
getMetaByNamePathAndClass
(
claz
,
"0,"
+
obj
.
getMetaName
());
if
(
meta
.
isEmpty
()
)
{
if
(
meta
==
null
)
{
result
.
setSuccess
(
false
);
result
.
setMsg
(
String
.
format
(
"元数据不存在namePath为[%s]的[%s]数据"
,
obj
.
getMetaName
(),
obj
.
getMetaModel
()));
...
...
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