cuikaidong
2025-06-12 066063ed92fdd40da4dfe21770557f3adba3e1af
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
package org.jeecg.modules.system.service;
 
import java.util.List;
import java.util.Map;
 
import org.jeecg.common.exception.JeecgBootException;
import org.jeecg.modules.system.entity.SysCategory;
import org.jeecg.modules.system.model.TreeSelectModel;
 
import com.baomidou.mybatisplus.extension.service.IService;
 
/**
 * @Description: 分类字典
 * @Author: jeecg-boot
 * @Date:   2019-05-29
 * @Version: V1.0
 */
public interface ISysCategoryService extends IService<SysCategory> {
 
    /**根节点父ID的值*/
    public static final String ROOT_PID_VALUE = "0";
 
    void addSysCategory(SysCategory sysCategory);
    
    void updateSysCategory(SysCategory sysCategory);
    
    /**
      * 根据父级编码加载分类字典的数据
     * @param pcode
     * @return
     */
    public List<TreeSelectModel> queryListByCode(String pcode) throws JeecgBootException;
    
    /**
      * 根据pid查询子节点集合
     * @param pid
     * @return
     */
    public List<TreeSelectModel> queryListByPid(String pid);
 
    /**
     * 根据pid查询子节点集合,支持查询条件
     * @param pid
     * @param condition
     * @return
     */
    public List<TreeSelectModel> queryListByPid(String pid, Map<String,String> condition);
 
    /**
     * 根据code查询id
     * @param code
     * @return
     */
    public String queryIdByCode(String code);
    
}