lius
2023-06-08 534aec7a687ceca8120ba798ad20d80d7058ffe6
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
package org.jeecg.modules.system.service;
 
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.system.entity.MdcProduction;
import org.jeecg.modules.system.model.MdcProductionTreeModel;
import org.jeecg.modules.system.model.ProductionIdModel;
 
import java.util.List;
 
/**
 * @Description: 产线表
 * @Author: liuS
 * @Date: 2023-03-23
 * @Version: V1.0
 */
public interface IMdcProductionService extends IService<MdcProduction> {
 
    /**
     * 查询所有产线信息,并分节点进行显示
     */
    List<MdcProductionTreeModel> queryTreeList();
 
    /**
     * 查询所有产线信息,并分节点进行显示
     */
    List<MdcProductionTreeModel> queryTreeList(String ids);
 
    /**
     * 查询所有部门DepartId信息,并分节点进行显示
     */
    List<ProductionIdModel> queryProductionIdTreeList();
 
    /**
     * 根据关键字搜索相关的产线数据
     */
    List<MdcProductionTreeModel> searchByKeyWord(String keyWord);
 
    /**
     * 保存产线数据
     */
    void saveProductionData(MdcProduction mdcProduction);
 
    /**
     * 更新产线数据
     */
    boolean updateProductionDataById(MdcProduction mdcProduction);
 
    /**
     * 根据产线id删除并删除其可能存在的子级产线
     */
    boolean delete(String id);
 
    /**
     * 根据产线id批量删除并删除其可能存在的子级产线
     */
    void deleteBatchWithChildren(List<String> ids);
 
    /**
     * 获取下级产线
     */
    List<MdcProduction> queryProdByPid(String pid);
 
    /**
     * 根据用户id获取产线下拉树选项
     */
    List<ProductionIdModel> loadProductionTreeOptions(String userId);
}