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
3c3a8c82
Commit
3c3a8c82
authored
Jul 11, 2021
by
msgroup
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
规范栏目属性字段名称
parent
77e48cdb
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
4 deletions
+20
-4
GeneraterAction.java
src/main/java/net/mingsoft/cms/action/GeneraterAction.java
+1
-1
ContentBean.java
src/main/java/net/mingsoft/cms/bean/ContentBean.java
+13
-0
IContentDao.xml
src/main/java/net/mingsoft/cms/dao/IContentDao.xml
+4
-1
main.ftl
src/main/webapp/WEB-INF/manager/cms/content/main.ftl
+2
-2
No files found.
src/main/java/net/mingsoft/cms/action/GeneraterAction.java
View file @
3c3a8c82
...
...
@@ -178,7 +178,7 @@ public class GeneraterAction extends BaseAction {
ContentBean
contentBean
=
new
ContentBean
();
contentBean
.
setCategoryId
(
column
.
getId
());
contentBean
.
setCategoryType
(
column
.
getCategoryType
());
articleIdList
=
contentBiz
.
queryIdsByCategoryIdForParser
(
contentBean
);
// 判断列表类型
switch
(
CategoryTypeEnum
.
get
(
column
.
getCategoryType
()))
{
...
...
src/main/java/net/mingsoft/cms/bean/ContentBean.java
View file @
3c3a8c82
...
...
@@ -62,6 +62,11 @@ public class ContentBean extends ContentEntity {
*/
private
String
categoryType
;
/**
* 栏目属性,用于筛选文章列表
*/
private
String
categoryFlag
;
public
String
getCategoryType
()
{
return
categoryType
;
}
...
...
@@ -70,6 +75,14 @@ public class ContentBean extends ContentEntity {
this
.
categoryType
=
categoryType
;
}
public
String
getCategoryFlag
()
{
return
categoryFlag
;
}
public
void
setCategoryFlag
(
String
categoryFlag
)
{
this
.
categoryFlag
=
categoryFlag
;
}
public
String
getBeginTime
()
{
return
beginTime
;
}
...
...
src/main/java/net/mingsoft/cms/dao/IContentDao.xml
View file @
3c3a8c82
...
...
@@ -250,10 +250,13 @@
where ct.del=0
<!-- 查询子栏目数据 -->
<if
test=
"categoryId
> 0
"
>
<if
test=
"categoryId
!=null and categoryId!='' and categoryType==1
"
>
and (ct.category_id=#{categoryId} or ct.category_id in
(select id FROM cms_category where find_in_set('${categoryId}',CATEGORY_PARENT_IDS)>0))
</if>
<if
test=
"categoryId!=null and categoryId!='' and categoryType==2"
>
ct.category_id=#{categoryId}
</if>
<if
test=
"beginTime!=null and beginTime!=''"
>
<if
test=
"_databaseId == 'mysql'"
>
and content_datetime
>
= #{beginTime}
...
...
src/main/webapp/WEB-INF/manager/cms/content/main.ftl
View file @
3c3a8c82
...
...
@@ -33,8 +33,8 @@
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"文章类型"
prop=
"c
ontentType
"
>
<el-select
v-model=
"form.c
ontentType
"
<el-form-item
label=
"文章类型"
prop=
"c
ategoryFlag
"
>
<el-select
v-model=
"form.c
ategoryFlag
"
:style=
"{width: '100%'}"
:filterable=
"false"
:disabled=
"false"
...
...
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