|
@@ -255,15 +255,17 @@ public class CommunityArticleServiceImpl extends ServiceImpl<CommunityArticleMap
|
|
*/
|
|
*/
|
|
@Override
|
|
@Override
|
|
public void insertCommunityArticle(CommunityArticle communityArticle) {
|
|
public void insertCommunityArticle(CommunityArticle communityArticle) {
|
|
|
|
+
|
|
|
|
+
|
|
Long userId = SecurityUtils.getLoginUser().getUserId();
|
|
Long userId = SecurityUtils.getLoginUser().getUserId();
|
|
//插入文章信息
|
|
//插入文章信息
|
|
communityArticle.setUserId(userId);
|
|
communityArticle.setUserId(userId);
|
|
communityArticle.setCreateBy(userId);
|
|
communityArticle.setCreateBy(userId);
|
|
communityArticle.setUpdateBy(userId);
|
|
communityArticle.setUpdateBy(userId);
|
|
communityArticle.setIsDelete(false);
|
|
communityArticle.setIsDelete(false);
|
|
- communityArticle.setComment(false);
|
|
|
|
|
|
+/* communityArticle.setComment(false);
|
|
communityArticle.setDownload(false);
|
|
communityArticle.setDownload(false);
|
|
- communityArticle.setRaffle(false);
|
|
|
|
|
|
+ communityArticle.setRaffle(false);*/
|
|
communityArticle.setUpdateTime(DateUtils.parseDate(DateUtils.getTime()));
|
|
communityArticle.setUpdateTime(DateUtils.parseDate(DateUtils.getTime()));
|
|
communityArticle.setCreateTime(DateUtils.parseDate(DateUtils.getTime()));
|
|
communityArticle.setCreateTime(DateUtils.parseDate(DateUtils.getTime()));
|
|
communityArticleMapper.insert(communityArticle);
|
|
communityArticleMapper.insert(communityArticle);
|