xiaoyong931011
2022-07-07 c49dd989ed6afddefb546672a17ec6745698edc9
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);
    }
}