|
|
@@ -29,6 +29,10 @@ public class ArticleTweetImplService implements ArticleTweetService {
|
|
|
return num;
|
|
|
}
|
|
|
|
|
|
+ public int update(ArticleTweet articleTweet){
|
|
|
+ return articleTweetDao.update(articleTweet);
|
|
|
+ }
|
|
|
+
|
|
|
@Override
|
|
|
public int updateArticleApprove(ArticleTweet articleTweet) {
|
|
|
int num = articleTweetDao.updateArticleApprove(articleTweet);
|
|
|
@@ -41,6 +45,26 @@ public class ArticleTweetImplService implements ArticleTweetService {
|
|
|
return num;
|
|
|
}
|
|
|
|
|
|
+ public int insertArticleFile(ArticleFileInfo articleFileInfos){
|
|
|
+ return articleTweetDao.insertArticleFile(articleFileInfos);
|
|
|
+ }
|
|
|
+
|
|
|
+ public int delArticleFileBatch(int id){
|
|
|
+ return articleTweetDao.delArticleFileBatch(id);
|
|
|
+ }
|
|
|
+
|
|
|
+ public int delArticle(int id){
|
|
|
+ return articleTweetDao.delArticle(id);
|
|
|
+ }
|
|
|
+
|
|
|
+ public int delArticleFile(int link_id){
|
|
|
+ return articleTweetDao.delArticleFile(link_id);
|
|
|
+ }
|
|
|
+
|
|
|
+ public int updateArticleTop(ArticleTweet articleTweet){
|
|
|
+ return articleTweetDao.updateArticleTop(articleTweet);
|
|
|
+ }
|
|
|
+
|
|
|
@Override
|
|
|
public IPage<HotelVo> queryHotelPage(String sqlx, int page, int rows) {
|
|
|
IPage<HotelVo> iPage = new IPage();
|
|
|
@@ -154,6 +178,18 @@ public class ArticleTweetImplService implements ArticleTweetService {
|
|
|
return iPage;
|
|
|
}
|
|
|
|
|
|
+ public IPage<ArticleListVo> queryManageArticlesPage(String keyWord, String townId, int page, int rows) {
|
|
|
+ IPage<ArticleListVo> iPage = new IPage();
|
|
|
+ List<ArticleListVo> commentList = articleTweetDao.queryManageArticlesPage(keyWord, townId, page, rows);
|
|
|
+ int total = articleTweetDao.queryManageArticlesTotal(keyWord, townId);
|
|
|
+ iPage.setPageList(commentList == null ? new ArrayList<>() : commentList);
|
|
|
+ iPage.setPage(page);
|
|
|
+ iPage.setTotalPage((int) Math.ceil((double) total / rows));
|
|
|
+ iPage.setRows(rows);
|
|
|
+ iPage.setTotal(total);
|
|
|
+ return iPage;
|
|
|
+ }
|
|
|
+
|
|
|
@Override
|
|
|
public IPage<ArticleListVo> relatedTweetPage(Integer userId, String townId, Integer articleId, int page, int rows) {
|
|
|
IPage<ArticleListVo> iPage = new IPage();
|
|
|
@@ -285,4 +321,8 @@ public class ArticleTweetImplService implements ArticleTweetService {
|
|
|
return result;
|
|
|
}
|
|
|
|
|
|
+ public List<ArticleTweet> queryTops(){
|
|
|
+ return articleTweetDao.queryTops();
|
|
|
+ }
|
|
|
+
|
|
|
}
|