| | |
| | | BlogArticle article = new BlogArticle(); |
| | | BeanUtil.copyProperties(addDto, article); |
| | | article.setSeparateYear(DateUtil.year(article.getPublishDate())); |
| | | article.setSeparateMonth(DateUtil.month(article.getPublishDate())); |
| | | article.setSeparateMonth(DateUtil.month(article.getPublishDate())+1); |
| | | article.setSeparateDay(DateUtil.dayOfMonth(article.getPublishDate())); |
| | | |
| | | article.setIsEnable(MyConstant.Yes); |
| | | blogArticleService.save(article); |
| | | System.out.println(article.toString()); |
| | | |
| | | |
| | | // blogArticleService.add(blogArticleParam); |
| | | return new SuccessResponseData(); |
| | | } |
| | | |