| | |
| | | ja.update_user, |
| | | ja.create_user, |
| | | ja.is_deleted, |
| | | (select bdb.dict_value from blade_dict_biz bdb where bdb.parent_id='1740566650527752194' and ja.article_type |
| | | = bdb.dict_key) dictValue, |
| | | jpd.id pdId |
| | | from jczz_article ja |
| | | LEFT JOIN jczz_public_discuss jpd on jpd.article_id=ja.id |
| | |
| | | ja.create_user, |
| | | ja.is_deleted, |
| | | ja.article_range, |
| | | ((select bdb.dict_value from blade_dict_biz bdb where bdb.parent_id='1722966265111248897' and ja.article_type |
| | | ((select bdb.dict_value from blade_dict_biz bdb where bdb.parent_id=#{parentId} and ja.article_type |
| | | = bdb.dict_key)) dictValue |
| | | from jczz_article ja |
| | | <where> |
| | |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import io.lettuce.core.dynamic.annotation.Param; |
| | | import org.springblade.modules.article.entity.Article; |
| | | import org.springblade.modules.article.mapper.ArticleMapper; |
| | | import org.springblade.modules.article.service.ArticleService; |
| | |
| | | |
| | | /** |
| | | * 查询资讯分页信息 |
| | | * |
| | | * @param page |
| | | * @param article 资讯对象 |
| | | * @return |
| | |
| | | |
| | | /** |
| | | * 查询资讯分页信息 |
| | | * |
| | | * @param page |
| | | * @param article 资讯对象 |
| | | * @return |
| | |
| | | |
| | | /** |
| | | * 查询资讯分页信息(角色权限) |
| | | * |
| | | * @param page |
| | | * @param article 资讯对象 |
| | | * @return |
| | |
| | | |
| | | /** |
| | | * 查询资讯分页信息(敏感词预警) |
| | | * |
| | | * @param page |
| | | * @param article 资讯对象 |
| | | * @return |
| | |
| | | |
| | | /** |
| | | * 查询资讯分页信息(角色权限)附带评论点赞数 |
| | | * |
| | | * @param page |
| | | * @param article 资讯对象 |
| | | * @return |
| | |
| | | |
| | | @Override |
| | | public ArticleVO getArticleOne(ArticleVO article) { |
| | | if (article.getType() != null && article.getType().equals(4)) { |
| | | article.setParentId("1740566650527752194"); |
| | | } else { |
| | | article.setParentId("1722966265111248897"); |
| | | } |
| | | ArticleVO articleVO = baseMapper.getArticleOne(article); |
| | | return articleVO; |
| | | } |
| | |
| | | |
| | | private String districtId; |
| | | |
| | | private String parentId; |
| | | |
| | | } |
| | |
| | | <if test="userTopics.updateTime != null ">and jut.update_time = #{userTopics.updateTime}</if> |
| | | <if test="userTopics.deleteFlag != null ">and jut.delete_flag = #{userTopics.deleteFlag}</if> |
| | | <if test="userTopics.articleId != null ">and jut.article_id = #{userTopics.articleId} |
| | | GROUP BY jut.article_id, |
| | | GROUP BY jut.article_id, jut.signature_path, |
| | | bu.avatar, |
| | | bu.`name`, |
| | | bu.phone, |