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
50b9a257
Commit
50b9a257
authored
Jun 04, 2018
by
tang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加文章选择立即发送,未添加send_date值
parent
ecca70cf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
ArticleController.java
src/main/java/com/thinkgem/jeesite/modules/cms/web/ArticleController.java
+4
-0
No files found.
src/main/java/com/thinkgem/jeesite/modules/cms/web/ArticleController.java
View file @
50b9a257
...
@@ -3,6 +3,7 @@
...
@@ -3,6 +3,7 @@
*/
*/
package
com
.
thinkgem
.
jeesite
.
modules
.
cms
.
web
;
package
com
.
thinkgem
.
jeesite
.
modules
.
cms
.
web
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.List
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletRequest
;
...
@@ -210,6 +211,9 @@ public class ArticleController extends BaseController {
...
@@ -210,6 +211,9 @@ public class ArticleController extends BaseController {
if
(
StringUtils
.
isBlank
(
article
.
getIsTip
())){
if
(
StringUtils
.
isBlank
(
article
.
getIsTip
())){
article
.
setIsTip
(
"N"
);
article
.
setIsTip
(
"N"
);
}
}
if
(
article
.
getSendDateType
()==
0
){
article
.
setSendDate
(
new
Date
());
}
articleService
.
save
(
article
);
articleService
.
save
(
article
);
addMessage
(
redirectAttributes
,
"保存消息'"
+
StringUtils
.
abbr
(
article
.
getTitle
(),
50
)
+
"'成功"
);
addMessage
(
redirectAttributes
,
"保存消息'"
+
StringUtils
.
abbr
(
article
.
getTitle
(),
50
)
+
"'成功"
);
String
categoryId
=
article
.
getCategory
()!=
null
?
article
.
getCategory
().
getId
():
null
;
String
categoryId
=
article
.
getCategory
()!=
null
?
article
.
getCategory
().
getId
():
null
;
...
...
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