From e687a2aa97eb1cf33d09a25b0c4029f64983be0b Mon Sep 17 00:00:00 2001 From: xiaoyong931011 <15274802129@163.com> Date: Thu, 07 Jul 2022 11:10:31 +0800 Subject: [PATCH] 20220606 --- src/main/java/com/xcong/farmer/cms/modules/core/service/impl/CmsCoreServiceImpl.java | 24 ++++++++++++++---------- 1 files changed, 14 insertions(+), 10 deletions(-) diff --git a/src/main/java/com/xcong/farmer/cms/modules/core/service/impl/CmsCoreServiceImpl.java b/src/main/java/com/xcong/farmer/cms/modules/core/service/impl/CmsCoreServiceImpl.java index 5a2579b..538f32e 100644 --- a/src/main/java/com/xcong/farmer/cms/modules/core/service/impl/CmsCoreServiceImpl.java +++ b/src/main/java/com/xcong/farmer/cms/modules/core/service/impl/CmsCoreServiceImpl.java @@ -22,23 +22,27 @@ private TemplateConfiguration cfg; @Override - public void articleProcess(Long id, String templateName) { + public void articleProcess(Long id, String templateName, String templatePath) { Map<String, Object> data = new HashMap<>(); data.put("id", id); - + data.put("companyId", 23L); + data.put("templateType", "article"); + data.put("templatePath", templatePath); + data.put("templateName", id); if (StrUtil.isEmpty(templateName)) { - templateName = "artile.defualt.html"; + templateName = "defualt.artile.html"; } cfg.process(data, templateName); } @Override - public void columnProcess(String code, String templateName, boolean article) { - - } - - @Override - public void columnProcess(Long id, String templateName, boolean article) { - + public void columnProcess(Map<String, Object> data, String templateName, boolean article) { + data.put("companyId", 23L); + data.put("templateType", "column"); + data.put("page", 1); + if (StrUtil.isEmpty(templateName)) { + templateName = "defualt.list.html"; + } + cfg.process(data, templateName); } } -- Gitblit v1.9.1