Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
S
sap-service
Project
Project
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
曲欣亮
sap-service
Commits
2de74f82
Commit
2de74f82
authored
Aug 05, 2019
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
11a4e89b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
3 deletions
+16
-3
TestController.java
src/main/java/com/egolm/sso/TestController.java
+16
-3
No files found.
src/main/java/com/
schneider_distributor
/TestController.java
→
src/main/java/com/
egolm/sso
/TestController.java
View file @
2de74f82
package
com
.
schneider_distributor
;
package
com
.
egolm
.
sso
;
import
java.net.MalformedURLException
;
import
java.util.LinkedHashMap
;
...
...
@@ -8,10 +8,14 @@ import javax.servlet.http.HttpServletRequest;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
org.springframework.web.bind.annotation.RestController
;
import
com.egolm.sso.services.CommonService
;
import
com.schneider_distributor.ZMISD009SOCREATIONTask
;
@RestController
@RequestMapping
public
class
TestController
{
...
...
@@ -19,6 +23,9 @@ public class TestController {
@Value
(
"${spring.profiles.active}"
)
private
String
profiles
;
@Autowired
private
CommonService
common
;
@Autowired
ZMISD009SOCREATIONTask
task
;
...
...
@@ -32,8 +39,9 @@ public class TestController {
public
String
list
(
HttpServletRequest
request
)
{
this
.
verify
();
Map
<
String
,
String
>
map
=
new
LinkedHashMap
<
String
,
String
>();
map
.
put
(
"/"
,
"接口列表"
);
map
.
put
(
"/009_SO_CREATION"
,
"分销商采购(特价采购)订单,EDI平台调用SAP接口上传数据"
);
map
.
put
(
"/"
,
"/"
);
map
.
put
(
"/009_SO_CREATION"
,
"009_SO_CREATION"
);
map
.
put
(
"/getToken"
,
"getToken"
);
StringBuffer
sb
=
new
StringBuffer
();
for
(
String
key
:
map
.
keySet
())
{
sb
.
append
(
"<A HREF=\""
+
key
+
"\">"
+
map
.
get
(
key
)
+
"</A>"
).
append
(
"<BR/>\n"
);
...
...
@@ -49,4 +57,9 @@ public class TestController {
return
"OK"
;
}
@GetMapping
(
"getToken"
)
public
Object
getToken
()
{
String
token
=
common
.
getToken
();
return
token
;
}
}
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