| | |
| | | |
| | | import cn.hutool.core.collection.CollUtil; |
| | | import cn.hutool.core.util.StrUtil; |
| | | import com.xcong.farmer.cms.common.contants.AppContants; |
| | | import com.xcong.farmer.cms.core.template.TemplateConfiguration; |
| | | import com.xcong.farmer.cms.modules.core.service.ICmsCoreService; |
| | | import com.xcong.farmer.cms.modules.system.mapper.WebSetMapper; |
| | |
| | | @Autowired |
| | | private WebSetMapper webSetMapper; |
| | | |
| | | private final Executor executor = new ThreadPoolExecutor(10, 20, 600, TimeUnit.SECONDS, new LinkedBlockingQueue<Runnable>()); |
| | | // private final Executor executor = new ThreadPoolExecutor(10, 20, 600, TimeUnit.SECONDS, new LinkedBlockingQueue<Runnable>()); |
| | | |
| | | |
| | | @Override |
| | |
| | | |
| | | try { |
| | | String finalTemplateName = templateName; |
| | | executor.execute(() -> { |
| | | AppContants.EXECUTOR.execute(() -> { |
| | | cfg.process(data, finalTemplateName); |
| | | }); |
| | | } catch (Exception e) { |
| | |
| | | |
| | | try { |
| | | String finalTemplateName = templateName; |
| | | executor.execute(() -> { |
| | | AppContants.EXECUTOR.execute(() -> { |
| | | cfg.process(data, finalTemplateName); |
| | | }); |
| | | } catch (Exception e) { |
| | |
| | | |
| | | try { |
| | | String finalTemplateName = templateName; |
| | | executor.execute(() -> { |
| | | AppContants.EXECUTOR.execute(() -> { |
| | | cfg.process(data, finalTemplateName); |
| | | }); |
| | | } catch (Exception e) { |
| | |
| | | |
| | | try { |
| | | String finalTemplateName = templateName; |
| | | executor.execute(() -> { |
| | | AppContants.EXECUTOR.execute(() -> { |
| | | cfg.process(data, finalTemplateName); |
| | | }); |
| | | } catch (Exception e) { |