Commit 126bcbb1 authored by maoying's avatar maoying

计划定时任务修改

parent 82898793
...@@ -214,7 +214,9 @@ public class Safety3DDataSendServiceImpl implements ISafety3DDataSendService { ...@@ -214,7 +214,9 @@ public class Safety3DDataSendServiceImpl implements ISafety3DDataSendService {
public PointCheckInfoBusinessRespone pointCheckInfoPushToB(String toke,String product,String appKey,Long checkId) { public PointCheckInfoBusinessRespone pointCheckInfoPushToB(String toke,String product,String appKey,Long checkId) {
//获取推送内容 //获取推送内容
PointCheckInfoBusinessRespone pb = checkMapper.getCheckInfoBusinessById(checkId); PointCheckInfoBusinessRespone pb = checkMapper.getCheckInfoBusinessById(checkId);
if(ObjectUtils.isEmpty(pb)){
return pb;
}
AgencyUserModel userById = remoteSecurityService.getUserById(toke, product, appKey, pb.getUserId()); AgencyUserModel userById = remoteSecurityService.getUserById(toke, product, appKey, pb.getUserId());
if(null != userById && !StringUtils.isEmpty(userById.getUserName())) { if(null != userById && !StringUtils.isEmpty(userById.getUserName())) {
pb.setUserName(userById.getRealName()); pb.setUserName(userById.getRealName());
......
...@@ -12,7 +12,7 @@ public class TaskExecutorPoolConfig { ...@@ -12,7 +12,7 @@ public class TaskExecutorPoolConfig {
public Executor taskExecutor() { public Executor taskExecutor() {
ThreadPoolTaskExecutor executor = new ThreadPoolTaskExecutor(); ThreadPoolTaskExecutor executor = new ThreadPoolTaskExecutor();
executor.setCorePoolSize(10);//线程池维护线程的最少数量 executor.setCorePoolSize(10);//线程池维护线程的最少数量
executor.setMaxPoolSize(20); //线程池维护线程的最大数量 executor.setMaxPoolSize(100); //线程池维护线程的最大数量
executor.setQueueCapacity(100); executor.setQueueCapacity(100);
executor.setKeepAliveSeconds(30);//线程池维护线程所允许的空闲时间,TimeUnit.SECONDS executor.setKeepAliveSeconds(30);//线程池维护线程所允许的空闲时间,TimeUnit.SECONDS
executor.setThreadNamePrefix("asyncTaskExecutor-"); executor.setThreadNamePrefix("asyncTaskExecutor-");
......
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