From a6436015bfcbb99c96535f8bf1ff762723f31c61 Mon Sep 17 00:00:00 2001 From: guwd Date: Wed, 25 Nov 2020 10:12:15 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BA=9F=E5=BC=83attribebean?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../net/mingsoft/cms/action/web/MCmsAction.java | 4 +--- .../mingsoft/cms/biz/impl/ContentBizImpl.java | 17 ++--------------- .../WEB-INF/manager/cms/content/index.ftl | 2 +- .../webapp/WEB-INF/manager/cms/content/main.ftl | 2 +- src/main/webapp/WEB-INF/manager/index.ftl | 3 ++- 5 files changed, 7 insertions(+), 21 deletions(-) diff --git a/src/main/java/net/mingsoft/cms/action/web/MCmsAction.java b/src/main/java/net/mingsoft/cms/action/web/MCmsAction.java index f1e9fbab..e4204600 100644 --- a/src/main/java/net/mingsoft/cms/action/web/MCmsAction.java +++ b/src/main/java/net/mingsoft/cms/action/web/MCmsAction.java @@ -38,7 +38,6 @@ import net.mingsoft.cms.biz.IContentBiz; import net.mingsoft.cms.entity.CategoryEntity; import net.mingsoft.cms.entity.ContentEntity; import net.mingsoft.cms.util.CmsParserUtil; -import net.mingsoft.mdiy.bean.AttributeBean; import net.mingsoft.mdiy.bean.PageBean; import net.mingsoft.mdiy.biz.IModelBiz; import net.mingsoft.mdiy.biz.IPageBiz; @@ -409,8 +408,7 @@ public class MCmsAction extends net.mingsoft.cms.action.BaseAction { //设置动态请求的模块路径 map.put(ParserUtil.MODEL_NAME, "mcms"); searchMap.put(ParserUtil.PAGE_NO, 0); - AttributeBean attributeBean = new AttributeBean(); - ParserUtil.read(SEARCH+ParserUtil.HTM_SUFFIX,map, page,attributeBean); + ParserUtil.read(SEARCH+ParserUtil.HTM_SUFFIX,map, page); int total = PageUtil.totalPage(count, page.getSize()); int pageNo = BasicUtil.getInt(ParserUtil.PAGE_NO, 1); if(pageNo >= total && total!=0) { diff --git a/src/main/java/net/mingsoft/cms/biz/impl/ContentBizImpl.java b/src/main/java/net/mingsoft/cms/biz/impl/ContentBizImpl.java index 2836939f..fb5a77cf 100644 --- a/src/main/java/net/mingsoft/cms/biz/impl/ContentBizImpl.java +++ b/src/main/java/net/mingsoft/cms/biz/impl/ContentBizImpl.java @@ -34,7 +34,6 @@ import net.mingsoft.cms.dao.ICategoryDao; import net.mingsoft.cms.entity.CategoryEntity; import net.mingsoft.cms.entity.ContentEntity; import net.mingsoft.cms.util.CmsParserUtil; -import net.mingsoft.mdiy.bean.AttributeBean; import net.mingsoft.mdiy.bean.PageBean; import net.mingsoft.mdiy.entity.ModelEntity; import net.mingsoft.mdiy.util.ParserUtil; @@ -122,7 +121,6 @@ public class ContentBizImpl extends BaseBizImpl imp // 网站风格物理路径 List articleIdList = null; List categoryList = null; - AttributeBean attributeBean = new AttributeBean(); ContentBean contentBean = new ContentBean(); contentBean.setBeginTime(dateTime); Map map = new HashMap<>(); @@ -145,12 +143,7 @@ public class ContentBizImpl extends BaseBizImpl imp LOG.error("模板不存在:{}",category.getCategoryUrl()); continue; } - // 获取文章列表表属性 - ParserUtil.read(category.getCategoryListUrl(),map, page,attributeBean); - contentBean.setFlag(attributeBean.getFlag()); - contentBean.setNoflag(attributeBean.getNoflag()); - contentBean.setOrder(attributeBean.getOrder()); - contentBean.setOrderBy(attributeBean.getOrderby()); + } articleIdList = queryIdsByCategoryIdForParser(contentBean); // 有符合条件的就更新 @@ -190,13 +183,7 @@ public class ContentBizImpl extends BaseBizImpl imp map.put(ParserUtil.HTML, ParserUtil.HTML); map.put(ParserUtil.URL, BasicUtil.getUrl()); map.put(ParserUtil.PAGE, page); - AttributeBean attributeBean = new AttributeBean(); - // 获取文章列表模板标签属性 - ParserUtil.read(column.getCategoryListUrl(), map, page, attributeBean); - contentBean.setFlag(attributeBean.getFlag()); - contentBean.setNoflag(attributeBean.getNoflag()); - contentBean.setOrder(attributeBean.getOrder()); - contentBean.setOrderBy(attributeBean.getOrderby()); + } articleIdList = contentDao.queryIdsByCategoryIdForParser(contentBean); // 判断列表类型 diff --git a/src/main/webapp/WEB-INF/manager/cms/content/index.ftl b/src/main/webapp/WEB-INF/manager/cms/content/index.ftl index e1174e07..1e047ff2 100644 --- a/src/main/webapp/WEB-INF/manager/cms/content/index.ftl +++ b/src/main/webapp/WEB-INF/manager/cms/content/index.ftl @@ -122,7 +122,7 @@ #index .left-tree{ min-height: 100vh; background: #fff; - width: 180px; + width: 220px; border-right: solid 1px #e6e6e6; } diff --git a/src/main/webapp/WEB-INF/manager/cms/content/main.ftl b/src/main/webapp/WEB-INF/manager/cms/content/main.ftl index 3c0c134d..88ad2771 100644 --- a/src/main/webapp/WEB-INF/manager/cms/content/main.ftl +++ b/src/main/webapp/WEB-INF/manager/cms/content/main.ftl @@ -68,7 +68,7 @@ - + diff --git a/src/main/webapp/WEB-INF/manager/index.ftl b/src/main/webapp/WEB-INF/manager/index.ftl index 155ce328..1981453f 100644 --- a/src/main/webapp/WEB-INF/manager/index.ftl +++ b/src/main/webapp/WEB-INF/manager/index.ftl @@ -328,7 +328,8 @@ }) if (sub.syncStoreUrl) { - sub.modelUrl = sub.syncStoreUrl + //sub.modelUrl = "http://store.web.i.mingsoft.net/#/?client=localhost:8080//ms"; + sub.modelUrl = sub.syncStoreUrl; sub.modelTitle = 'mstore'; sub.isStore = true; !result ? this.editableTabs.push(sub) : ""