IArticleDao.java
上传用户:yunfeng252
上传日期:2022-07-23
资源大小:12403k
文件大小:2k
- package org.yufeng.dao;
- import java.util.List;
- import org.yufeng.domains.Article;
- public interface IArticleDao {
- //-------------------根据create_time排序-----------------
- //根据show排序
- public List browseArticleByShowOrderCreateTime();
- //根据搜索排序
- public List browseArticleBySo_idAndSearchOrderCreateTime(String so_id,
- String search);
- //根据so_id排序
- public List browseArticleBySo_idOrderCreateTime(String so_id);
- //根据as_id排序
- public List browseArticleByAs_idOrderCreateTime(String as_id);
-
-
- //-------------------根据hits排序-----------------
- //根据show排序
- public List browseArticleByShowOrderHits();
- //根据搜索排序
- public List browseArticleBySo_idAndSearchOrderHits(String so_id,
- String search);
- //根据so_id排序
- public List browseArticleBySo_idOrderHits(String so_id);
- //根据as_id排序
- public List browseArticleByAs_idOrderHits(String as_id);
-
- //---------------------------------------------------//
- public List browseArticleBysearch(Integer so_id, String search);
- // 相关文章查询
- public List browseAboutArticle(String name);
-
- public List browseArticleBySoHits(Integer id);
- public List browseArticleByHits();
- public List browseArticleByAsHits(Integer id);
- public List browseArticle();
- //查询所有父类别的文章
- public List browseArticleBySo_id(Integer id);
-
- //查询所有父类别的文章--主页显示
- public List browseArticleBySo_id_index(Integer id);
- public List browseArticleByAs_id(Integer id);
- public List browseArticleByShow();
- public List browseArticle_Week();
- public List browseArticle_Month();
- public Article loadArticle(Integer id);
-
- //批量删除文章
- public boolean delArticle(String ar_id);
- public boolean addArticle(Article article);
- public boolean updateArticle(Article article);
-
- //批量修改文章的类别和子类别
- public void updateAr_sort_assort(String ar_id,String ar_sort_id,String ar_assort_id);
-
- //批量修改文章的日期
- public void updateAr_DateTime(String ar_id,String ar_createTime);
-
- //批量修改文章是否在主页显示
- public void updateAr_show(String ar_id,String ar_show);
-
- //批量修改是否为推荐文章
- public void updateAr_commend(String ar_id,String ar_commend);
-
- //批量更新文章的阅读次数
- public void updateAr_ReadClear(String ar_id);
-
- }