干燥机配套车间生产管理系统/云平台服务端
baoshiwei
2024-12-11 7c585586e9bea943161676bd9d127e81123891c3
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
package ${bussiPackage}.${entityPackage}.service;
 
import org.jeecg.common.system.vo.SelectTreeModel;
import ${bussiPackage}.${entityPackage}.entity.${entityName};
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.common.exception.JeecgBootException;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import java.util.List;
 
/**
 * @Description: ${tableVo.ftlDescription}
 * @Author: jeecg-boot
 * @Date:   ${.now?string["yyyy-MM-dd"]}
 * @Version: V1.0
 */
public interface I${entityName}Service extends IService<${entityName}> {
 
    /**根节点父ID的值*/
    public static final String ROOT_PID_VALUE = "0";
    
    /**树节点有子节点状态值*/
    public static final String HASCHILD = "1";
    
    /**树节点无子节点状态值*/
    public static final String NOCHILD = "0";
 
    /**
     * 新增节点
     *
     * @param ${entityName?uncap_first}
     */
    void add${entityName}(${entityName} ${entityName?uncap_first});
    
    /**
   * 修改节点
   *
   * @param ${entityName?uncap_first}
   * @throws JeecgBootException
   */
    void update${entityName}(${entityName} ${entityName?uncap_first}) throws JeecgBootException;
    
    /**
     * 删除节点
     *
     * @param id
   * @throws JeecgBootException
     */
    void delete${entityName}(String id) throws JeecgBootException;
 
      /**
       * 查询所有数据,无分页
       *
       * @param queryWrapper
       * @return List<${entityName}>
       */
    List<${entityName}> queryTreeListNoPage(QueryWrapper<${entityName}> queryWrapper);
 
    /**
     * 【vue3专用】根据父级编码加载分类字典的数据
     *
     * @param parentCode
     * @return
     */
    List<SelectTreeModel> queryListByCode(String parentCode);
 
    /**
     * 【vue3专用】根据pid查询子节点集合
     *
     * @param pid
     * @return
     */
    List<SelectTreeModel> queryListByPid(String pid);
 
}