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
532a8f87
Commit
532a8f87
authored
Aug 05, 2019
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
8378c52b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
TestController.java
src/main/java/com/egolm/sso/TestController.java
+1
-2
CommonService.java
src/main/java/com/egolm/sso/services/CommonService.java
+3
-2
No files found.
src/main/java/com/egolm/sso/TestController.java
View file @
532a8f87
...
@@ -68,8 +68,7 @@ public class TestController {
...
@@ -68,8 +68,7 @@ public class TestController {
@GetMapping
(
"saveOrderTracking"
)
@GetMapping
(
"saveOrderTracking"
)
public
Object
saveOrderTracking
()
{
public
Object
saveOrderTracking
()
{
common
.
saveOrderTracking
(
"sapmaterialmaster"
+
DateUtil
.
formatDate
(
new
Date
(),
DateUtil
.
FMT_DATETIME
),
"MaterialMaster"
,
"123456"
,
"123456"
,
"G"
,
null
,
"操作失败"
);
return
common
.
saveOrderTracking
(
"sapmaterialmaster"
+
DateUtil
.
formatDate
(
new
Date
(),
DateUtil
.
FMT_DATETIME
),
"MaterialMaster"
,
"123456"
,
"123456"
,
"G"
,
null
,
"操作失败"
);
return
"OK"
;
}
}
...
...
src/main/java/com/egolm/sso/services/CommonService.java
View file @
532a8f87
...
@@ -131,7 +131,7 @@ public class CommonService {
...
@@ -131,7 +131,7 @@ public class CommonService {
}
}
}
}
public
void
saveOrderTracking
(
String
traceNo
,
String
orderType
,
String
orderNo
,
String
disCode
,
String
action
,
String
result
,
String
errorMessage
)
{
public
String
saveOrderTracking
(
String
traceNo
,
String
orderType
,
String
orderNo
,
String
disCode
,
String
action
,
String
result
,
String
errorMessage
)
{
if
(
isOpen
)
{
if
(
isOpen
)
{
String
requestUrl
=
baseUrl
+
insertOrderTrackingUri
;
String
requestUrl
=
baseUrl
+
insertOrderTrackingUri
;
String
token
=
this
.
getToken
();
String
token
=
this
.
getToken
();
...
@@ -145,8 +145,9 @@ public class CommonService {
...
@@ -145,8 +145,9 @@ public class CommonService {
parameters
.
put
(
"action"
,
action
);
parameters
.
put
(
"action"
,
action
);
parameters
.
put
(
"result"
,
result
);
parameters
.
put
(
"result"
,
result
);
parameters
.
put
(
"errorMessage"
,
errorMessage
);
parameters
.
put
(
"errorMessage"
,
errorMessage
);
HttpUtil
.
post
(
requestUrl
,
parameters
,
headers
);
return
HttpUtil
.
post
(
requestUrl
,
parameters
,
headers
);
}
}
return
null
;
}
}
public
static
class
TrackingTokenException
extends
RuntimeException
{
public
static
class
TrackingTokenException
extends
RuntimeException
{
...
...
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