peng
2026-03-18 e59a0201057ba67cad425fed804c82ff4ba0c6f1
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
package com.tievd.cube.modules.system.mapper;
 
import cn.hutool.json.JSONObject;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tievd.cube.modules.system.model.TreeSelectModel;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import com.tievd.cube.modules.system.entity.SysCategory;
 
import java.util.List;
import java.util.Map;
 
/**
 * 分类字典
 *
 * @author 杨欣武
 * @version 2.4.0
 * @since 2022-05-07
 */
public interface SysCategoryMapper extends BaseMapper<SysCategory> {
 
    /**
     * 根据父级ID查询树节点数据
     */
    List<TreeSelectModel> queryListByPid(@Param("pid") Long pid, @Param("query") JSONObject query);
 
    @Select("SELECT ID FROM sys_category WHERE CODE = #{code, jdbcType=VARCHAR}")
    Long queryIdByCode(@Param("code") String code);
}