Commit 9f9f9035 authored by luoxj's avatar luoxj

标签bug

parent 91c6ce25
This diff is collapsed.
This diff is collapsed.
......@@ -176,8 +176,8 @@ public class GeneraterAction extends BaseAction {
for (CategoryEntity column : columns) {
ContentBean contentBean = new ContentBean();
contentBean.setContentCategoryId(column.getId());
// 分类是列表,链接
if(!column.getCategoryType().equals("2")) {
// 分类是列表
if(column.getCategoryType().equals("1")) {
// 判断模板文件是否存在
if (!FileUtil.exist(ParserUtil.buildTempletPath(column.getCategoryListUrl()))) {
LOG.error("模板不存在:{}", column.getCategoryUrl());
......@@ -253,8 +253,8 @@ public class GeneraterAction extends BaseAction {
categoryList = categoryBiz.query(categoryEntity);
for(CategoryEntity category : categoryList){
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())) {
LOG.error("模板不存在:{}",category.getCategoryUrl());
......@@ -276,8 +276,8 @@ public class GeneraterAction extends BaseAction {
}else {
CategoryEntity category = (CategoryEntity) categoryBiz.getEntity(Integer.parseInt(columnId));
contentBean.setContentCategoryId(columnId);
// 分类是列表,链接
if(!category.getCategoryType().equals("2")){
// 分类是列表
if(category.getCategoryType().equals("1")){
// 获取文章列表表属性
// 判断模板文件是否存在
if (!FileUtil.exist(ParserUtil.buildTempletPath(category.getCategoryUrl()))) {
......
......@@ -263,7 +263,7 @@
cms_content.id article_id,c.*
FROM cms_content
LEFT JOIN cms_category c ON content_category_id = c.id
where del=0
where cms_content.del=0
<if test="appId &gt; 0">
and cms_content.app_id = #{appId}
</if>
......
......@@ -6,6 +6,7 @@
<#include '/include/head-file.ftl'/>
<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>
<!-- 此部分是铭飞平台MStroe的客户端(MStore不在铭飞开源产品范围),如果不需要使用MStore可以删除掉 -->
<script src="https://cdn.mingsoft.net/ms/1.0/store.umd.min.js"></script>
<style>
.to-ele {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment