Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
C
cms_sys
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
西魏
cms_sys
Commits
9f9f9035
Commit
9f9f9035
authored
Sep 04, 2020
by
luoxj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
标签bug
parent
91c6ce25
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
7 deletions
+8
-7
5.0.0-to-5.1-mysql.sql
doc/5.0.0-to-5.1-mysql.sql
+0
-0
mcms-5.1.sql
doc/mcms-5.1.sql
+0
-0
GeneraterAction.java
src/main/java/net/mingsoft/cms/action/GeneraterAction.java
+6
-6
IContentDao.xml
src/main/java/net/mingsoft/cms/dao/IContentDao.xml
+1
-1
index.ftl
src/main/webapp/WEB-INF/manager/index.ftl
+1
-0
No files found.
doc/5.0.0-to-5.1-mysql.sql
View file @
9f9f9035
This diff is collapsed.
Click to expand it.
doc/mcms-5.1.sql
View file @
9f9f9035
This diff is collapsed.
Click to expand it.
src/main/java/net/mingsoft/cms/action/GeneraterAction.java
View file @
9f9f9035
...
...
@@ -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
())))
{
...
...
src/main/java/net/mingsoft/cms/dao/IContentDao.xml
View file @
9f9f9035
...
...
@@ -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 > 0"
>
and cms_content.app_id = #{appId}
</if>
...
...
src/main/webapp/WEB-INF/manager/index.ftl
View file @
9f9f9035
...
...
@@ -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
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment