Commit 3528fbed by wutong

日志在跑完该账号后打印

parent 3b6e4256
...@@ -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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment