|
@@ -1,7 +1,6 @@
|
|
|
package com.willalp.app.service.impl;
|
|
|
|
|
|
import cn.hutool.core.bean.BeanUtil;
|
|
|
-import cn.hutool.core.thread.NamedThreadFactory;
|
|
|
import cn.hutool.core.util.ObjectUtil;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
import com.baomidou.mybatisplus.core.toolkit.IdWorker;
|
|
@@ -21,10 +20,6 @@ import org.springframework.transaction.annotation.Transactional;
|
|
|
import javax.annotation.Resource;
|
|
|
import java.util.ArrayList;
|
|
|
import java.util.List;
|
|
|
-import java.util.concurrent.ExecutorService;
|
|
|
-import java.util.concurrent.SynchronousQueue;
|
|
|
-import java.util.concurrent.ThreadPoolExecutor;
|
|
|
-import java.util.concurrent.TimeUnit;
|
|
|
|
|
|
/**
|
|
|
* app首页数据Service业务层处理
|
|
@@ -34,16 +29,6 @@ import java.util.concurrent.TimeUnit;
|
|
|
*/
|
|
|
@Service
|
|
|
public class HsAppHomeDataServiceImpl extends ServiceImpl<HsAppHomeDataMapper, HsAppHomeData> implements IHsAppHomeDataService {
|
|
|
- /**
|
|
|
- * 控制线程数,最优选择是处理器线程数*3
|
|
|
- */
|
|
|
- private final static int THREAD_COUNT = 12;
|
|
|
- /**
|
|
|
- * 线程池
|
|
|
- */
|
|
|
- ExecutorService threadPool = new ThreadPoolExecutor(THREAD_COUNT, 800,
|
|
|
- 10, TimeUnit.SECONDS,
|
|
|
- new SynchronousQueue<>(), new NamedThreadFactory("AppConfig", false));
|
|
|
@Resource
|
|
|
private HsAppHomeDataMapper hsAppHomeDataMapper;
|
|
|
|