package com.gkhy.exam.system.mapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.gkhy.exam.system.domain.SysCategory; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; import java.util.List; /** *

* 课程分类表 Mapper 接口 *

* * @author kzy * @since 2024-06-05 11:15:14 */ @Mapper public interface SysCategoryMapper extends BaseMapper { /** * 查询分类列表 * * @param category 分类信息 * @return 分类集合 */ List selectCategoryList(SysCategory category); /** * 校验分类名称是否唯一 * @param name * @param parentId * @return */ SysCategory checkNameUnique(@Param("name") String name, @Param("parentId")Long parentId); /** * 根据课程id查询课程绑定数量 * @param categoryId * @return */ int selectCountOfCoure(Long categoryId); /** * 根据课程id查询题库绑定数量 * @param categoryId * @return */ int selectCountOfBank(Long categoryId); }