zhangherong
2025-06-12 6abc1a2fb78003bb1ea6283d813b8ccc0bcd9b2b
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
package org.jeecg.modules.base.service;
 
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.jeecg.common.system.vo.SelectTreeModel;
import org.jeecg.modules.base.entity.FactoryModel;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.common.exception.JeecgBootException;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.jeecg.modules.base.entity.FactoryModelDetail;
import org.jeecg.modules.system.entity.SysDepart;
 
import java.util.List;
import java.util.Map;
import java.util.Set;
 
/**
 * @Description: 工厂建模
 * @Author: jeecg-boot
 * @Date:   2022-11-08
 * @Version: V1.0
 */
public interface IFactoryModelService extends IService<FactoryModel> {
    /**
     * @param enterpriseId
     * @param version
     * 加载树
     * @return
     */
    List<SelectTreeModel> loadTree(String enterpriseId,Integer version);
    /**
     * 获取版本列表
     * @param page
     * @param ids
     * @param parentId
     * @param version
     * @return
     */
    Page<Map<String, Object>> getFactoryList(Page<Map<String,Object>> page,
                                           Integer version,
                                           String parentId,
                                             List<String> ids
 
                                             );
    /**
     * 弃用
     * @return
     */
    List<SysDepart> getDepartList();
    /**
     * 弃用
     * @param uid
     * @return
     */
    public String getEidByUid(String uid);
    /**
     * 弃用
     * @param eid
     * @return
     */
    List<FactoryModelDetail> getListByEid(String eid);
    /**
     * 获取所有版本号
     * @param
     * @return
     */
    public Set<Integer> getVersionList();
    /**
     * 获取初始版本号
     * @return
     */
    public Integer getInitVersion();
    /**
     * 获取最后一次生效列表
     * @param parentIds
     * @return
     */
    List<FactoryModel> getLastUsableList(List<String> parentIds);
    /**
     * 获取当前生效列表
     * @param parentIds
     * @return
     */
    List<FactoryModel> getUsableList(List<String> parentIds);
    /**
     * 查当前生效版本和上次生效版本
     * @return
     */
    Map<String,Object> getNowAndLastUsableVersion();
    /**
     * 根据父Id获取所有孩子列表
     * @param version
     * @return
     */
    List<FactoryModel> getAllDepartByPid(Integer version);
    /**
     * 获取版本状态根据版本号
     * @param version
     * @return
     */
    List<String> getVersionStatusByVersion(Integer version);
    /**
     * 获取当前生效车间列表
     * @return
     */
    List<Map<String,Object>>  getUsableWorkShopList();
    /**
     * 获取生效版本号
     * @return
     */
    List<Integer> getUsableVersion();
 
}