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
50839c1f
Commit
50839c1f
authored
Aug 13, 2019
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
6921c937
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
3 deletions
+15
-3
ZMISD009SOCREATIONServiceTask.java
..._MI_SD_009_SO_CREATION/ZMISD009SOCREATIONServiceTask.java
+15
-3
No files found.
src/main/java/com/egolm/sso/clients/Z_MI_SD_009_SO_CREATION/ZMISD009SOCREATIONServiceTask.java
View file @
50839c1f
...
...
@@ -2,6 +2,7 @@ package com.egolm.sso.clients.Z_MI_SD_009_SO_CREATION;
import
java.io.File
;
import
java.text.SimpleDateFormat
;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.Map
;
...
...
@@ -23,8 +24,10 @@ import com.egolm.sso.services.CommonService;
import
com.egolm.sso.services.TraceService
;
import
com.egolm.sso.util.DateUtil
;
import
com.egolm.sso.util.FileUtil
;
import
com.egolm.sso.util.SqlUtil
;
import
com.egolm.sso.util.ThrowableUtil
;
import
com.egolm.sso.util.XMLUtil
;
import
com.egolm.sso.util.SqlUtil.Page
;
import
com.google.gson.Gson
;
@Component
...
...
@@ -69,9 +72,18 @@ public class ZMISD009SOCREATIONServiceTask {
}
public
void
sendData
(
ZMISD009SOCREATION
ZMISD009SOCREATION
)
{
List
<
Map
<
String
,
Object
>>
headerList
=
jdbcTemplate
.
queryForList
(
"SELECT * FROM t_so_creation_header WHERE SEND_STATUS = ? LIMIT ?"
,
"N"
,
1
);
if
(
headerList
.
size
()
>
0
)
{
for
(
Map
<
String
,
Object
>
headerMap
:
headerList
)
{
Page
page
=
new
Page
(
1L
,
1000L
);
String
sql
=
"SELECT * FROM t_so_creation_header WHERE SEND_STATUS = 'N'"
;
List
<
Map
<
String
,
Object
>>
list
=
new
ArrayList
<
Map
<
String
,
Object
>>();
List
<
Map
<
String
,
Object
>>
tmp
=
null
;
do
{
String
limitSql
=
SqlUtil
.
limitByMysql
(
sql
,
page
);
tmp
=
jdbcTemplate
.
queryForList
(
limitSql
);
list
.
addAll
(
tmp
);
page
.
toNextPage
();
}
while
(
tmp
!=
null
&&
tmp
.
size
()
>
0
);
if
(
list
.
size
()
>
0
)
{
for
(
Map
<
String
,
Object
>
headerMap
:
list
)
{
try
{
this
.
sendData
(
ZMISD009SOCREATION
,
headerMap
);
}
catch
(
Exception
e
)
{
...
...
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