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
e21cad8a
Commit
e21cad8a
authored
Mar 17, 2020
by
zhangkb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
系统导出接口代码提交
parent
bf1fa4c7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
2 deletions
+27
-2
TagFileCtrl.java
src/main/java/com/keymobile/tagmanager/api/TagFileCtrl.java
+17
-2
AuthServiceClient.java
...va/com/keymobile/tagmanager/remote/AuthServiceClient.java
+10
-0
TagFileService.java
...java/com/keymobile/tagmanager/service/TagFileService.java
+0
-0
No files found.
src/main/java/com/keymobile/tagmanager/api/TagFileCtrl.java
View file @
e21cad8a
package
com
.
keymobile
.
tagmanager
.
api
;
import
java.util.ArrayList
;
import
java.util.List
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletResponse
;
import
org.apache.commons.lang.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.PostMapping
;
...
...
@@ -88,6 +92,19 @@ public class TagFileCtrl {
tagExportService
.
undoImportExcel
(
importlogId
);
}
@ApiOperation
(
value
=
"系统导出(系统id传参样式:4,9,10,23)"
,
notes
=
"系统导出(系统id传参样式:4,9,10,23)"
)
@GetMapping
(
value
=
"/exportSystem"
)
public
void
exportSystem
(
@RequestParam
String
systemIdString
,
HttpServletRequest
request
,
HttpServletResponse
response
)
throws
Exception
{
if
(
StringUtils
.
isNotBlank
(
systemIdString
))
{
List
<
Long
>
systemIds
=
new
ArrayList
<>();
String
[]
systemId
=
systemIdString
.
split
(
","
);
for
(
String
sid
:
systemId
)
{
systemIds
.
add
(
Long
.
valueOf
(
sid
));
}
tagExportService
.
exportSystem
(
systemIds
,
request
,
response
);
}
}
//----------------------以下为导入系统的时候
...
...
@@ -96,6 +113,4 @@ public class TagFileCtrl {
String
userName
=
UserInfoUtils
.
getUserName
();
return
tagExportService
.
importSystem
(
userName
,
file
);
}
}
src/main/java/com/keymobile/tagmanager/remote/AuthServiceClient.java
View file @
e21cad8a
package
com
.
keymobile
.
tagmanager
.
remote
;
import
java.util.List
;
import
java.util.Map
;
import
org.springframework.cloud.openfeign.FeignClient
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.PathVariable
;
...
...
@@ -14,4 +17,11 @@ public interface AuthServiceClient {
@GetMapping
(
value
=
"/orgs/findByFullName"
)
public
Org
findByFullName
(
@RequestParam
(
"orgFullName"
)
String
orgFullName
);
@GetMapping
(
value
=
"/domains/{domainId}/catalogs"
)
public
List
<
Map
<
String
,
Object
>>
catalogs
(
@PathVariable
(
"domainId"
)
Long
domainId
);
@GetMapping
(
value
=
"/domains/{domainId}/scopes/{scopeId}"
)
public
Map
<
String
,
Object
>
getScopes
(
@PathVariable
(
"domainId"
)
Long
domainId
,
@PathVariable
(
"scopeId"
)
Long
scopeId
);
}
src/main/java/com/keymobile/tagmanager/service/TagFileService.java
View file @
e21cad8a
This diff is collapsed.
Click to expand it.
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