Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dc-java
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
bltdc
dc-java
Commits
1f795387
Commit
1f795387
authored
Sep 03, 2020
by
huluobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oms sku sync
parent
ba9ba879
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
Application.java
...nc-oms-order/src/main/java/com/bailuntec/Application.java
+1
-0
OrderSyncJob.java
...s-order/src/main/java/com/bailuntec/job/OrderSyncJob.java
+2
-1
No files found.
data-base/base-sync-oms-order/src/main/java/com/bailuntec/Application.java
View file @
1f795387
...
...
@@ -29,6 +29,7 @@ public class Application {
public
static
void
main
(
String
[]
args
)
{
new
JobScheduler
(
createRegistryCenter
(),
createJobConfiguration
(),
createJobEventConfiguration
(),
new
OrderSyncJobListener
()).
init
();
new
JobScheduler
(
createRegistryCenter
(),
createJobConfiguration1
(),
createJobEventConfiguration
(),
new
OrderSyncJobListener
()).
init
();
new
JobScheduler
(
createRegistryCenter
(),
createJobConfiguration2
(),
createJobEventConfiguration
(),
new
OrderSyncJobListener
()).
init
();
}
private
static
CoordinatorRegistryCenter
createRegistryCenter
()
{
...
...
data-base/base-sync-oms-order/src/main/java/com/bailuntec/job/OrderSyncJob.java
View file @
1f795387
...
...
@@ -85,6 +85,8 @@ public class OrderSyncJob extends PointJob {
if
(
omsResultInfo
.
getResult
()
!=
null
&&
omsResultInfo
.
getResult
().
size
()
>
0
)
{
analyseOmsOrder
(
omsResultInfo
.
getResult
());
}
log
.
info
(
"同步百伦订单完成,总共:{}页, 还剩{}页"
,
omsResultInfo
.
getTotalPages
(),
jobPointLog
.
getPageIndex
());
}
else
{
throw
new
RuntimeException
(
"调用OMS接口同步百伦订单失败, 响应200, 请求参数"
+
map
.
toString
());
}
...
...
@@ -103,7 +105,6 @@ public class OrderSyncJob extends PointJob {
SessionUtil
.
closeSession
();
}
}
log
.
info
(
"同步百伦订单完成,还剩{}页"
,
jobPointLog
.
getPageIndex
());
jobPointLog
.
setPageIndex
(
jobPointLog
.
getPageIndex
()
-
1
);
}
while
(
0
<
jobPointLog
.
getPageIndex
());
...
...
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