|
|
@ -23,7 +23,6 @@ import com.epmet.dto.result.GovArticleDetailResultDTO; |
|
|
|
import com.epmet.dto.result.ArticleBannerResultDTO; |
|
|
|
import com.epmet.dto.result.ArticleDetailResultDTO; |
|
|
|
import com.epmet.dto.result.ArticleLatestResultDTO; |
|
|
|
import com.epmet.dto.result.ArticleWithTagsResultDTO; |
|
|
|
import com.epmet.entity.ArticleEntity; |
|
|
|
import org.apache.ibatis.annotations.Mapper; |
|
|
|
import org.apache.ibatis.annotations.Param; |
|
|
@ -43,45 +42,45 @@ public interface ArticleDao extends BaseDao<ArticleEntity> { |
|
|
|
/** |
|
|
|
* 政府端查询文章详情 |
|
|
|
* |
|
|
|
* @param articleId |
|
|
|
* 文章id |
|
|
|
* @param articleId 文章id |
|
|
|
*/ |
|
|
|
GovArticleDetailResultDTO queryGovArticleDetail(String articleId); |
|
|
|
|
|
|
|
/** |
|
|
|
* 政府端查询文章详情-内容 |
|
|
|
* |
|
|
|
* @param articleId |
|
|
|
* 文章id |
|
|
|
* @param articleId 文章id |
|
|
|
*/ |
|
|
|
List<GovArticleContentDTO> queryGovArticleContent(String articleId); |
|
|
|
|
|
|
|
/** |
|
|
|
* @Description |
|
|
|
* @param formDto |
|
|
|
* @Description |
|
|
|
* @author zxc |
|
|
|
*/ |
|
|
|
Integer checkPublishArticle(ResiTagListFormDTO formDto); |
|
|
|
|
|
|
|
/** |
|
|
|
* 已发布列表---组织工作人员 |
|
|
|
* @author zhaoqifeng |
|
|
|
* @date 2020/6/2 16:59 |
|
|
|
* |
|
|
|
* @param customerId |
|
|
|
* @param tagIdList |
|
|
|
* @return java.util.List<com.epmet.dto.result.PublishedListResultDTO> |
|
|
|
* @author zhaoqifeng |
|
|
|
* @date 2020/6/2 16:59 |
|
|
|
*/ |
|
|
|
@DataFilter(tableAliases = "a", gridIdsArgName = "gridList") |
|
|
|
List<PublishedListResultDTO> selectArticleListForAgency(@Param("customerId") String customerId, @Param("tagIdList") List<String> tagIdList, Set<String> gridList); |
|
|
|
|
|
|
|
/** |
|
|
|
* 已发布列表---网格工作人员 |
|
|
|
* @author zhaoqifeng |
|
|
|
* @date 2020/6/5 16:35 |
|
|
|
* |
|
|
|
* @param customerId |
|
|
|
* @param tagIdList |
|
|
|
* @param gridList |
|
|
|
* @return java.util.List<com.epmet.dto.result.PublishedListResultDTO> |
|
|
|
* @author zhaoqifeng |
|
|
|
* @date 2020/6/5 16:35 |
|
|
|
*/ |
|
|
|
List<PublishedListResultDTO> selectArticleListForGrid(@Param("customerId") String customerId, |
|
|
|
@Param("tagIdList") List<String> tagIdList, |
|
|
@ -89,58 +88,61 @@ public interface ArticleDao extends BaseDao<ArticleEntity> { |
|
|
|
|
|
|
|
/** |
|
|
|
* 已下线文章列表 |
|
|
|
* @author zhaoqifeng |
|
|
|
* @date 2020/6/3 15:16 |
|
|
|
* |
|
|
|
* @param gridList |
|
|
|
* @return java.util.List<com.epmet.dto.result.OfflineListResultDTO> |
|
|
|
* @author zhaoqifeng |
|
|
|
* @date 2020/6/3 15:16 |
|
|
|
*/ |
|
|
|
@DataFilter(tableAliases = "a", gridIdsArgName = "gridList") |
|
|
|
List<OfflineListResultDTO> selectOfflineList(Set<String> gridList); |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
* @Description 根据网格Id查找置顶文章的相关信息列表 用处:居民端首页轮播 |
|
|
|
* @param gridId |
|
|
|
* @param num |
|
|
|
* @return List<ArticleBannerResultDTO> |
|
|
|
* @Description 根据网格Id查找置顶文章的相关信息列表 用处:居民端首页轮播 |
|
|
|
* @author wangc |
|
|
|
* @date 2020.06.02 16:04 |
|
|
|
**/ |
|
|
|
List<ArticleBannerResultDTO> selectTopArticleMsg(@Param("gridId") String gridId, @Param("num") Integer num); |
|
|
|
|
|
|
|
/** |
|
|
|
* @Description 根据网格Id查找最新文章的相关信息列表 用处:居民端最新文章列表 |
|
|
|
* @param gridId |
|
|
|
* @param tagName |
|
|
|
* @param excludeTagName |
|
|
|
* @param num |
|
|
|
* @return List<ArticleBannerResultDTO> |
|
|
|
* @Description 根据网格Id查找最新文章的相关信息列表 用处:居民端最新文章列表 |
|
|
|
* @author wangc |
|
|
|
* @date 2020.06.02 16:04 |
|
|
|
**/ |
|
|
|
List<ArticleLatestResultDTO> selectLatestArticleMsg(@Param("gridId")String gridId,@Param("num")Integer num); |
|
|
|
List<ArticleLatestResultDTO> selectLatestArticleMsg(@Param("gridId") String gridId, @Param("tagName") String tagName, @Param("excludeTagName") String excludeTagName, @Param("num") Integer num); |
|
|
|
|
|
|
|
/** |
|
|
|
* @Description 根据网格Id和标签列表查找文章的相关信息列表 用处:居民端党建声音列表 |
|
|
|
* @param gridId |
|
|
|
* @param tagIdList |
|
|
|
* @return List<ArticleListResultDTO> |
|
|
|
* @Description 根据网格Id和标签列表查找文章的相关信息列表 用处:居民端党建声音列表 |
|
|
|
* @author wangc |
|
|
|
* @date 2020.06.03 14:19 |
|
|
|
**/ |
|
|
|
List<ArticleListResultDTO> selectArticleList(@Param("gridId") String gridId, @Param("tagIdList") List<String> tagIdList); |
|
|
|
|
|
|
|
/** |
|
|
|
* @Description 根绝文章Id查询出文章的内容、封面等相关信息,如果居民端传入的网格Id不在该文章的发布范围内,则返回NULL |
|
|
|
* @param gridId |
|
|
|
* @param articleId |
|
|
|
* @return ArticleDetailResultDTO |
|
|
|
* @Description 根绝文章Id查询出文章的内容、封面等相关信息,如果居民端传入的网格Id不在该文章的发布范围内,则返回NULL |
|
|
|
* @author wangc |
|
|
|
* @date 2020.06.03 18:28 |
|
|
|
**/ |
|
|
|
ArticleDetailResultDTO selectArticleDetail(@Param("gridId") String gridId, @Param("articleId") String articleId); |
|
|
|
|
|
|
|
/** |
|
|
|
* @Description 根据draftId获取文章id |
|
|
|
* @param draftId |
|
|
|
* @Description 根据draftId获取文章id |
|
|
|
* @author zxc |
|
|
|
*/ |
|
|
|
String getArticleIdByDraftId(@Param("draftId") String draftId); |
|
|
|