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
0ffd0831
Commit
0ffd0831
authored
Dec 13, 2019
by
lanmw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add getSystemByCode method
parent
ecee4836
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
30 additions
and
13 deletions
+30
-13
TagCtrl.java
src/main/java/com/keymobile/tagmanager/api/TagCtrl.java
+16
-5
TagFileCtrl.java
src/main/java/com/keymobile/tagmanager/api/TagFileCtrl.java
+9
-7
TagFileService.java
...java/com/keymobile/tagmanager/service/TagFileService.java
+1
-1
TagService.java
...ain/java/com/keymobile/tagmanager/service/TagService.java
+4
-0
No files found.
src/main/java/com/keymobile/tagmanager/api/TagCtrl.java
View file @
0ffd0831
...
@@ -95,11 +95,6 @@ public class TagCtrl {
...
@@ -95,11 +95,6 @@ public class TagCtrl {
return
tagService
.
searchSystemTagByPage
(
userName
,
keyword
,
path
,
domain
,
new
Page
(
pageSize
,
pageNo
));
return
tagService
.
searchSystemTagByPage
(
userName
,
keyword
,
path
,
domain
,
new
Page
(
pageSize
,
pageNo
));
}
}
@ApiOperation
(
value
=
"查询系统标签"
,
notes
=
"查询系统标签"
)
@GetMapping
(
value
=
"/listSysTags"
)
public
List
<
SysTag
>
listSysTags
()
{
return
tagService
.
listSysTags
();
}
@ApiOperation
(
value
=
"搜索维度标签里面的个人标签"
,
notes
=
"搜索维度标签里面的个人标签"
)
@ApiOperation
(
value
=
"搜索维度标签里面的个人标签"
,
notes
=
"搜索维度标签里面的个人标签"
)
@GetMapping
(
value
=
"/searchPersonalDimensionTagByPage"
)
@GetMapping
(
value
=
"/searchPersonalDimensionTagByPage"
)
...
@@ -131,5 +126,21 @@ public class TagCtrl {
...
@@ -131,5 +126,21 @@ public class TagCtrl {
tagService
.
shareTags
(
tagIds
);
tagService
.
shareTags
(
tagIds
);
}
}
//---------------以下为导入系统的时候用到------------------
@ApiOperation
(
value
=
"查询系统标签"
,
notes
=
"查询系统标签"
)
@GetMapping
(
value
=
"/listSystems"
)
public
List
<
SysTag
>
listSysTags
()
{
return
tagService
.
listSysTags
();
}
@ApiOperation
(
value
=
"查询系统标签"
,
notes
=
"查询系统标签"
)
@GetMapping
(
value
=
"/getSystemByCode"
)
public
SysTag
getSystemByCode
(
@RequestParam
(
"code"
)
String
code
)
{
return
tagService
.
getSystemByCode
(
code
);
}
}
}
src/main/java/com/keymobile/tagmanager/api/TagFileCtrl.java
View file @
0ffd0831
...
@@ -38,13 +38,6 @@ public class TagFileCtrl {
...
@@ -38,13 +38,6 @@ public class TagFileCtrl {
return
tagExportService
.
importExcel
(
userName
,
dept
,
file
);
return
tagExportService
.
importExcel
(
userName
,
dept
,
file
);
}
}
@PostMapping
(
"/importSysTag"
)
public
String
importSysExcel
(
MultipartFile
file
,
HttpServletResponse
response
)
throws
Exception
{
String
userName
=
UserInfoUtils
.
getUserName
();
return
tagExportService
.
importSysExcel
(
userName
,
file
);
}
@ApiOperation
(
value
=
"分页获取导入日志"
,
notes
=
"分页获取导入日志"
)
@ApiOperation
(
value
=
"分页获取导入日志"
,
notes
=
"分页获取导入日志"
)
@GetMapping
(
value
=
"/listImportTagLogByPage"
)
@GetMapping
(
value
=
"/listImportTagLogByPage"
)
public
Page
searchPersonalDimensionTagByPage
(
@RequestParam
(
"pageNo"
)
Integer
pageNo
,
public
Page
searchPersonalDimensionTagByPage
(
@RequestParam
(
"pageNo"
)
Integer
pageNo
,
...
@@ -59,4 +52,13 @@ public class TagFileCtrl {
...
@@ -59,4 +52,13 @@ public class TagFileCtrl {
}
}
//----------------------以下为导入系统的时候
@PostMapping
(
"/importSystem"
)
public
String
importSystem
(
MultipartFile
file
,
HttpServletResponse
response
)
throws
Exception
{
String
userName
=
UserInfoUtils
.
getUserName
();
return
tagExportService
.
importSystem
(
userName
,
file
);
}
}
}
src/main/java/com/keymobile/tagmanager/service/TagFileService.java
View file @
0ffd0831
...
@@ -58,7 +58,7 @@ public class TagFileService {
...
@@ -58,7 +58,7 @@ public class TagFileService {
return
"ok"
;
return
"ok"
;
}
}
public
String
importSys
Excel
(
String
userName
,
MultipartFile
file
)
throws
Exception
{
public
String
importSys
tem
(
String
userName
,
MultipartFile
file
)
throws
Exception
{
ImportLog
importLog
=
new
ImportLog
(
UUID
.
randomUUID
().
toString
());
ImportLog
importLog
=
new
ImportLog
(
UUID
.
randomUUID
().
toString
());
importLog
.
setType
(
Constants
.
SYS_TAG_LOG_TYPE
);
importLog
.
setType
(
Constants
.
SYS_TAG_LOG_TYPE
);
importLog
.
setCreator
(
userName
);
importLog
.
setCreator
(
userName
);
...
...
src/main/java/com/keymobile/tagmanager/service/TagService.java
View file @
0ffd0831
...
@@ -389,4 +389,8 @@ public class TagService {
...
@@ -389,4 +389,8 @@ public class TagService {
return
mongoOperations
.
findAll
(
SysTag
.
class
);
return
mongoOperations
.
findAll
(
SysTag
.
class
);
}
}
public
SysTag
getSystemByCode
(
String
code
)
{
return
mongoOperations
.
findOne
(
Query
.
query
(
Criteria
.
where
(
"systemCode"
).
is
(
code
)),
SysTag
.
class
);
}
}
}
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