feat: support article demo videos and category counts

This commit is contained in:
王鹏
2026-08-17 15:50:17 +08:00
parent 2bf0a6db59
commit a1a806f266
8 changed files with 101 additions and 8 deletions

View File

@@ -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);
/**
* 新增文章
*