“djh”
5 天以前 7acaebcb01438578ded72491f39105db893982ef
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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;
 
/**
 * <p>
 * 课程分类表 Mapper 接口
 * </p>
 *
 * @author kzy
 * @since 2024-06-05 11:15:14
 */
@Mapper
public interface SysCategoryMapper extends BaseMapper<SysCategory> {
    /**
     * 查询分类列表
     *
     * @param category 分类信息
     * @return 分类集合
     */
    List<SysCategory> selectCategoryList(SysCategory category);
 
    /**
     * 校验分类名称是否唯一
     * @param name
     * @param parentId
     * @return
     */
    SysCategory checkNameUnique(@Param("name") String name, @Param("parentId")Long parentId);
 
    /**
     * 根据id删除分类
     * @param categoryId
     * @return
     */
    int deleteByCategoryId(Long categoryId);
}