Commit c09887ad by wutong

指定单个账号

parent 78465be7
...@@ -47,7 +47,7 @@ public class AmazonAdProductJob extends PointJob { ...@@ -47,7 +47,7 @@ public class AmazonAdProductJob extends PointJob {
private final int platformId = 15; private final int platformId = 15;
private PropertiesUtil propertiesUtil = PropertiesUtil.getInstance("const"); private PropertiesUtil propertiesUtil = PropertiesUtil.getInstance("const");
private OkHttpClient client = OkHttpUtil.getInstance(); private OkHttpClient client = OkHttpUtil.getInstance();
private final long SLEEP_WAIT = 8000; private final long SLEEP_WAIT = 10000;
@Override @Override
public void executeJob(ShardingContext shardingContext, JobPointLog jobPointLog) { public void executeJob(ShardingContext shardingContext, JobPointLog jobPointLog) {
//int totalPage = getCount();//分片即将处理的账号总数 //int totalPage = getCount();//分片即将处理的账号总数
...@@ -250,7 +250,7 @@ public class AmazonAdProductJob extends PointJob { ...@@ -250,7 +250,7 @@ public class AmazonAdProductJob extends PointJob {
return reportLocationResult.getLocation(); return reportLocationResult.getLocation();
} }
try { try {
Thread.sleep(SLEEP_WAIT); Thread.sleep(60000);
} catch (InterruptedException e) { } catch (InterruptedException e) {
jobAccountLog.setMessage("线程异常"+ ExceptionUtil.transform(e)); jobAccountLog.setMessage("线程异常"+ ExceptionUtil.transform(e));
e.printStackTrace(); e.printStackTrace();
......
...@@ -616,6 +616,6 @@ ...@@ -616,6 +616,6 @@
<select id="getListByPage" resultType="com.bailuntec.domain.entity.JobAccountLog"> <select id="getListByPage" resultType="com.bailuntec.domain.entity.JobAccountLog">
SELECT t2.message,t2.id,t1.company_id, t1.account_id, t2.job_name,t2.page_index,t2.page_size,t2.type,t2.interval_time,t2.start_time,t2.end_time, t2.task_ids FROM SELECT t2.message,t2.id,t1.company_id, t1.account_id, t2.job_name,t2.page_index,t2.page_size,t2.type,t2.interval_time,t2.start_time,t2.end_time, t2.task_ids FROM
(SELECT * FROM dc_base_company_account WHERE 1=1 and platform_id=15) t1 LEFT JOIN job_account_log t2 on t1.account_id = t2.account_id WHERE t2.message != '授权信息为空'order by id limit 1,2 (SELECT * FROM dc_base_company_account WHERE 1=1 and platform_id=15) t1 LEFT JOIN job_account_log t2 on t1.account_id = t2.account_id WHERE t2.message != '授权信息为空'order by id limit 1,1
</select> </select>
</mapper> </mapper>
\ No newline at end of file
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