master
luoxj 5 years ago
parent 91c6ce2587
commit 9f9f903592
  1. 2
      doc/5.0.0-to-5.1-mysql.sql
  2. 2
      doc/mcms-5.1.sql
  3. 12
      src/main/java/net/mingsoft/cms/action/GeneraterAction.java
  4. 2
      src/main/java/net/mingsoft/cms/dao/IContentDao.xml
  5. 1
      src/main/webapp/WEB-INF/manager/index.ftl

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -176,8 +176,8 @@ public class GeneraterAction extends BaseAction {
for (CategoryEntity column : columns) { for (CategoryEntity column : columns) {
ContentBean contentBean = new ContentBean(); ContentBean contentBean = new ContentBean();
contentBean.setContentCategoryId(column.getId()); contentBean.setContentCategoryId(column.getId());
// 分类是列表,链接 // 分类是列表
if(!column.getCategoryType().equals("2")) { if(column.getCategoryType().equals("1")) {
// 判断模板文件是否存在 // 判断模板文件是否存在
if (!FileUtil.exist(ParserUtil.buildTempletPath(column.getCategoryListUrl()))) { if (!FileUtil.exist(ParserUtil.buildTempletPath(column.getCategoryListUrl()))) {
LOG.error("模板不存在:{}", column.getCategoryUrl()); LOG.error("模板不存在:{}", column.getCategoryUrl());
@ -253,8 +253,8 @@ public class GeneraterAction extends BaseAction {
categoryList = categoryBiz.query(categoryEntity); categoryList = categoryBiz.query(categoryEntity);
for(CategoryEntity category : categoryList){ for(CategoryEntity category : categoryList){
contentBean.setContentCategoryId(category.getId()); contentBean.setContentCategoryId(category.getId());
// 分类是列表,链接 // 分类是列表
if(!category.getCategoryType().equals("2")){ if(category.getCategoryType().equals("1")){
// 判断模板文件是否存在 // 判断模板文件是否存在
if (!FileUtil.exist(ParserUtil.buildTempletPath(category.getCategoryListUrl())) || StringUtils.isEmpty(category.getCategoryListUrl())) { if (!FileUtil.exist(ParserUtil.buildTempletPath(category.getCategoryListUrl())) || StringUtils.isEmpty(category.getCategoryListUrl())) {
LOG.error("模板不存在:{}",category.getCategoryUrl()); LOG.error("模板不存在:{}",category.getCategoryUrl());
@ -276,8 +276,8 @@ public class GeneraterAction extends BaseAction {
}else { }else {
CategoryEntity category = (CategoryEntity) categoryBiz.getEntity(Integer.parseInt(columnId)); CategoryEntity category = (CategoryEntity) categoryBiz.getEntity(Integer.parseInt(columnId));
contentBean.setContentCategoryId(columnId); contentBean.setContentCategoryId(columnId);
// 分类是列表,链接 // 分类是列表
if(!category.getCategoryType().equals("2")){ if(category.getCategoryType().equals("1")){
// 获取文章列表表属性 // 获取文章列表表属性
// 判断模板文件是否存在 // 判断模板文件是否存在
if (!FileUtil.exist(ParserUtil.buildTempletPath(category.getCategoryUrl()))) { if (!FileUtil.exist(ParserUtil.buildTempletPath(category.getCategoryUrl()))) {

@ -263,7 +263,7 @@
cms_content.id article_id,c.* cms_content.id article_id,c.*
FROM cms_content FROM cms_content
LEFT JOIN cms_category c ON content_category_id = c.id LEFT JOIN cms_category c ON content_category_id = c.id
where del=0 where cms_content.del=0
<if test="appId &gt; 0"> <if test="appId &gt; 0">
and cms_content.app_id = #{appId} and cms_content.app_id = #{appId}
</if> </if>

@ -6,6 +6,7 @@
<#include '/include/head-file.ftl'/> <#include '/include/head-file.ftl'/>
<script src="${base}/static/plugins/sockjs/1.4.0/sockjs.min.js"></script> <script src="${base}/static/plugins/sockjs/1.4.0/sockjs.min.js"></script>
<script src="${base}/static/plugins/stomp/2.3.3/stomp.min.js"></script> <script src="${base}/static/plugins/stomp/2.3.3/stomp.min.js"></script>
<!-- 此部分是铭飞平台MStroe的客户端(MStore不在铭飞开源产品范围),如果不需要使用MStore可以删除掉 -->
<script src="https://cdn.mingsoft.net/ms/1.0/store.umd.min.js"></script> <script src="https://cdn.mingsoft.net/ms/1.0/store.umd.min.js"></script>
<style> <style>
.to-ele { .to-ele {

Loading…
Cancel
Save