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
huluobin
dc-java
Commits
3528fbed
Commit
3528fbed
authored
Jul 25, 2019
by
wutong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
日志在跑完该账号后打印
parent
3b6e4256
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
AmazonAdProductJob.java
...d/src/main/java/com/bailuntec/job/AmazonAdProductJob.java
+1
-1
No files found.
data-base/base-sync-amazon-ad/src/main/java/com/bailuntec/job/AmazonAdProductJob.java
View file @
3528fbed
...
@@ -63,12 +63,12 @@ public class AmazonAdProductJob extends PointJob {
...
@@ -63,12 +63,12 @@ public class AmazonAdProductJob extends PointJob {
List
<
JobAccountLog
>
listByPage
=
jobAccountLogMapper
.
getListByPage
(
platformId
,
pageSize
*
shardingContext
.
getShardingItem
(),
pageSize
);
List
<
JobAccountLog
>
listByPage
=
jobAccountLogMapper
.
getListByPage
(
platformId
,
pageSize
*
shardingContext
.
getShardingItem
(),
pageSize
);
if
(
listByPage
!=
null
&&
listByPage
.
size
()
>
0
)
{
if
(
listByPage
!=
null
&&
listByPage
.
size
()
>
0
)
{
for
(
JobAccountLog
jobAccountLog
:
listByPage
)
{
for
(
JobAccountLog
jobAccountLog
:
listByPage
)
{
log
.
warn
(
"账号个数: "
+
listByPage
.
size
()
+
" 分片: "
+
shardingContext
.
getShardingItem
()
+
" 账号: "
+
jobAccountLog
);
if
(
jobAccountLog
.
getId
()
==
null
)
{
//在任务表无记录
if
(
jobAccountLog
.
getId
()
==
null
)
{
//在任务表无记录
BeanUtils
.
copyProperties
(
jobAccountLog
,
jobPointLog
);
BeanUtils
.
copyProperties
(
jobAccountLog
,
jobPointLog
);
jobAccountLog
.
setId
(
null
);
jobAccountLog
.
setId
(
null
);
}
}
callAmazonAdApi
(
jobAccountLog
);
callAmazonAdApi
(
jobAccountLog
);
log
.
warn
(
"账号个数: "
+
listByPage
.
size
()
+
" 分片: "
+
shardingContext
.
getShardingItem
()
+
" 账号: "
+
jobAccountLog
);
if
(
jobAccountLog
.
getId
()
==
null
)
{
//在任务表无记录
if
(
jobAccountLog
.
getId
()
==
null
)
{
//在任务表无记录
jobAccountLogMapper
.
insertSelective
(
jobAccountLog
);
jobAccountLogMapper
.
insertSelective
(
jobAccountLog
);
}
else
{
}
else
{
...
...
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