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
0e2c90bd
Commit
0e2c90bd
authored
Jan 16, 2020
by
zhangkb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改标签元数据导入接口
parent
f23569f7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
25 deletions
+4
-25
TagFileService.java
...java/com/keymobile/tagmanager/service/TagFileService.java
+4
-25
No files found.
src/main/java/com/keymobile/tagmanager/service/TagFileService.java
View file @
0e2c90bd
...
...
@@ -61,8 +61,8 @@ public class TagFileService {
importLog
.
setCreator
(
userName
);
importLog
.
setDept
(
dept
);
mongoOperations
.
save
(
importLog
);
new
Thread
(
new
TagMetadataImportExecutor
(
userName
,
userId
,
dept
,
idPath
,
dimensionType
,
tagType
,
file
,
importLog
)
).
start
()
;
this
.
TagMetadataImportExecutor
(
userName
,
userId
,
dept
,
idPath
,
dimensionType
,
tagType
,
file
,
importLog
);
return
"ok"
;
}
...
...
@@ -215,29 +215,9 @@ public class TagFileService {
/**
*author:zhangkb time:2020-1-14 desc:标签管理导入
*/
class
TagMetadataImportExecutor
implements
Runnable
{
private
String
dept
;
private
MultipartFile
file
;
private
ImportLog
importLog
;
private
String
userName
;
private
String
userId
;
private
String
idPath
;
private
String
dimensionType
;
private
String
tagType
;
public
TagMetadataImportExecutor
(
String
userName
,
String
userId
,
String
dept
,
public
void
TagMetadataImportExecutor
(
String
userName
,
String
userId
,
String
dept
,
String
idPath
,
String
dimensionType
,
String
tagType
,
MultipartFile
file
,
ImportLog
importLog
)
{
this
.
userName
=
userName
;
this
.
userId
=
userId
;
this
.
dept
=
dept
;
this
.
file
=
file
;
this
.
importLog
=
importLog
;
this
.
idPath
=
idPath
;
this
.
dimensionType
=
dimensionType
;
this
.
tagType
=
tagType
;
}
@Override
public
void
run
()
{
MultipartFile
file
,
ImportLog
importLog
){
try
{
boolean
hasOtherFail
=
false
;
...
...
@@ -288,7 +268,6 @@ public class TagFileService {
mongoOperations
.
save
(
importLog
);
}
}
}
class
TagMetadataVerifyHandler
implements
IExcelVerifyHandler
<
TagMetadata
>{
@Override
public
ExcelVerifyHandlerResult
verifyHandler
(
TagMetadata
obj
)
{
...
...
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