feat: support article demo videos and category counts
This commit is contained in:
@@ -3,6 +3,8 @@ package com.ruoyi.app.mapper;
|
||||
import java.util.List;
|
||||
|
||||
import com.ruoyi.app.domain.AppBlogArticle;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.apache.ibatis.annotations.Select;
|
||||
import org.apache.ibatis.annotations.Update;
|
||||
|
||||
/**
|
||||
@@ -37,6 +39,10 @@ public interface AppBlogArticleMapper
|
||||
*/
|
||||
public List<AppBlogArticle> selectAppBlogArticleList(AppBlogArticle appBlogArticle);
|
||||
|
||||
/** 查询指定类型的可见文章数量 */
|
||||
@Select("select count(*) from app_blog_article where article_type = #{articleType} and is_show = #{isShow}")
|
||||
public Long countByArticleType(@Param("articleType") Long articleType, @Param("isShow") Long isShow);
|
||||
|
||||
/**
|
||||
* 新增文章
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user