Commit 50b9a257 by tang

添加文章选择立即发送,未添加send_date值

parent ecca70cf
......@@ -3,6 +3,7 @@
*/
package com.thinkgem.jeesite.modules.cms.web;
import java.util.Date;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
......@@ -210,6 +211,9 @@ public class ArticleController extends BaseController {
if(StringUtils.isBlank(article.getIsTip())){
article.setIsTip("N");
}
if(article.getSendDateType()==0){
article.setSendDate(new Date());
}
articleService.save(article);
addMessage(redirectAttributes, "保存消息'" + StringUtils.abbr(article.getTitle(),50) + "'成功");
String categoryId = article.getCategory()!=null?article.getCategory().getId():null;
......
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