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
1d818538
Commit
1d818538
authored
Aug 08, 2019
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
dd12d377
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
1 deletion
+15
-1
SI004INVENTORYSyncOutServiceTask.java
...TORY_SyncOutService/SI004INVENTORYSyncOutServiceTask.java
+7
-0
SI011ACTUALSALESSyncOutServiceTask.java
...ES_SyncOutService/SI011ACTUALSALESSyncOutServiceTask.java
+8
-1
No files found.
src/main/java/com/egolm/sso/distributors/SI_004_INVENTORY_SyncOutService/SI004INVENTORYSyncOutServiceTask.java
View file @
1d818538
...
...
@@ -71,6 +71,8 @@ public class SI004INVENTORYSyncOutServiceTask {
private
void
sendData
(
SI004INVENTORYSyncOut
SI004INVENTORYSyncOut
)
{
Date
now
=
new
Date
();
String
timeString
=
DateUtil
.
formatDate
(
now
,
"yyyyMMddHHmmssSSS"
);
String
apiName
=
"SAP库存数据接口"
;
String
apiPath
=
"/XISOAPAdapter/MessageServlet/si004INVENTORYSyncOut"
;
Page
page
=
new
Page
(
1L
,
1000L
,
new
String
[]
{
"DIS_CODE"
,
"INVENTORY_DATE"
});
String
sql
=
"SELECT * FROM t_dis_inventory WHERE SEND_STATUS = 'N'"
;
List
<
Map
<
String
,
Object
>>
list
=
new
ArrayList
<
Map
<
String
,
Object
>>();
...
...
@@ -118,6 +120,11 @@ public class SI004INVENTORYSyncOutServiceTask {
isSuccess
=
false
;
throw
new
XRException
(
ThrowableUtil
.
getCaused
(
e
).
getMessage
()
+
" -- "
+
timeString
,
e
);
}
finally
{
try
{
common
.
saveApiAccessLog
(
apiName
,
apiPath
,
isSuccess
?
"S"
:
"F"
);
}
catch
(
Exception
e1
)
{
logger
.
error
(
timeString
,
e1
);
}
String
xmlName
=
"004_INVENTORY"
;
try
{
String
xml
=
XMLUtil
.
toXml
(
mt004INVENTORY
);
...
...
src/main/java/com/egolm/sso/distributors/SI_011_ACTUAL_SALES_SyncOutService/SI011ACTUALSALESSyncOutServiceTask.java
View file @
1d818538
...
...
@@ -71,6 +71,8 @@ public class SI011ACTUALSALESSyncOutServiceTask {
private
void
sendData
(
SI011ACTUALSALESSyncOut
SI011ACTUALSALESSyncOut
)
{
Date
now
=
new
Date
();
String
timeString
=
DateUtil
.
formatDate
(
now
,
"yyyyMMddHHmmssSSS"
);
String
apiName
=
"SAP库存数据接口"
;
String
apiPath
=
"/XISOAPAdapter/MessageServlet/si011ACTUALSALESSyncOut"
;
Page
page
=
new
Page
(
1L
,
1000L
,
new
String
[]
{
"DIS_CODE"
,
"SALES_NO"
});
String
sql
=
"SELECT * FROM t_dis_sales WHERE SEND_STATUS = 'N'"
;
List
<
Map
<
String
,
Object
>>
list
=
new
ArrayList
<
Map
<
String
,
Object
>>();
...
...
@@ -123,8 +125,13 @@ public class SI011ACTUALSALESSyncOutServiceTask {
jdbcTemplate
.
update
(
updateSql
,
idList
.
toArray
());
}
catch
(
Throwable
e
)
{
isSuccess
=
false
;
e
.
printStackTrace
(
);
throw
new
XRException
(
ThrowableUtil
.
getCaused
(
e
).
getMessage
()
+
" -- "
+
timeString
,
e
);
}
finally
{
try
{
common
.
saveApiAccessLog
(
apiName
,
apiPath
,
isSuccess
?
"S"
:
"F"
);
}
catch
(
Exception
e1
)
{
logger
.
error
(
timeString
,
e1
);
}
String
xmlName
=
"011_ACTUAL_SALES"
;
try
{
String
xml
=
XMLUtil
.
toXml
(
mt011ACTUALSALES
);
...
...
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