Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
youka-manage
Overview
Overview
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
java-youka-wallet
youka-manage
Commits
dc75efe4
Commit
dc75efe4
authored
Apr 20, 2018
by
Java-聂换换
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
消息
parent
90a33814
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
14 deletions
+20
-14
Article.java
src/main/java/com/thinkgem/jeesite/modules/cms/entity/Article.java
+6
-6
ArticleController.java
src/main/java/com/thinkgem/jeesite/modules/cms/web/ArticleController.java
+6
-0
articleMessageForm.jsp
src/main/webapp/WEB-INF/views/modules/cms/articleMessageForm.jsp
+8
-8
No files found.
src/main/java/com/thinkgem/jeesite/modules/cms/entity/Article.java
View file @
dc75efe4
...
...
@@ -44,9 +44,9 @@ public class Article extends DataEntity<Article> {
private
String
scope
;
private
Integer
isFlow
=
0
;
private
String
isFlow
=
"N"
;
private
Integer
isTip
=
0
;
private
String
isTip
=
"N"
;
private
ArticleData
articleData
;
//文章副表
...
...
@@ -261,19 +261,19 @@ public class Article extends DataEntity<Article> {
this
.
scope
=
scope
;
}
public
Integer
getIsFlow
()
{
public
String
getIsFlow
()
{
return
isFlow
;
}
public
void
setIsFlow
(
Integer
isFlow
)
{
public
void
setIsFlow
(
String
isFlow
)
{
this
.
isFlow
=
isFlow
;
}
public
Integer
getIsTip
()
{
public
String
getIsTip
()
{
return
isTip
;
}
public
void
setIsTip
(
Integer
isTip
)
{
public
void
setIsTip
(
String
isTip
)
{
this
.
isTip
=
isTip
;
}
...
...
src/main/java/com/thinkgem/jeesite/modules/cms/web/ArticleController.java
View file @
dc75efe4
...
...
@@ -204,6 +204,12 @@ public class ArticleController extends BaseController {
if
(
article
.
getScope
()!=
null
){
article
.
getScope
().
replaceAll
(
","
,
""
);
}
if
(
StringUtils
.
isBlank
(
article
.
getIsFlow
())){
article
.
setIsFlow
(
"N"
);
}
if
(
StringUtils
.
isBlank
(
article
.
getIsTip
())){
article
.
setIsTip
(
"N"
);
}
articleService
.
save
(
article
);
addMessage
(
redirectAttributes
,
"保存消息'"
+
StringUtils
.
abbr
(
article
.
getTitle
(),
50
)
+
"'成功"
);
String
categoryId
=
article
.
getCategory
()!=
null
?
article
.
getCategory
().
getId
():
null
;
...
...
src/main/webapp/WEB-INF/views/modules/cms/articleMessageForm.jsp
View file @
dc75efe4
...
...
@@ -56,18 +56,18 @@
<div
class=
"controls"
>
<form:input
path=
"title"
htmlEscape=
"false"
maxlength=
"200"
class=
"input-xxlarge measure-input required"
/>
<c:if
test=
"${article.isTip eq
1
}"
>
<form:checkbox
path=
"isTip"
value=
"
1
"
checked=
"checked"
/>
<c:if
test=
"${article.isTip eq
'Y'
}"
>
<form:checkbox
path=
"isTip"
value=
"
Y
"
checked=
"checked"
/>
</c:if>
<c:if
test=
"${article.isTip ne
1
}"
>
<form:checkbox
path=
"isTip"
value=
"
1
"
/>
<c:if
test=
"${article.isTip ne
'Y'
}"
>
<form:checkbox
path=
"isTip"
value=
"
Y
"
/>
</c:if>
同步到首页弹窗
<c:if
test=
"${article.isFlow eq
1
}"
>
<form:checkbox
path=
"isFlow"
value=
"
1
"
checked=
"checked"
/>
<c:if
test=
"${article.isFlow eq
'Y'
}"
>
<form:checkbox
path=
"isFlow"
value=
"
Y
"
checked=
"checked"
/>
</c:if>
<c:if
test=
"${article.isFlow ne
1
}"
>
<form:checkbox
path=
"isFlow"
value=
"
1
"
/>
<c:if
test=
"${article.isFlow ne
'Y'
}"
>
<form:checkbox
path=
"isFlow"
value=
"
Y
"
/>
</c:if>
同步到首页滚动新闻
<form:input
path=
"category.id"
value=
"28"
cssStyle=
"display: none"
/>
...
...
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