hyingbo
6 天以前 cc0e9036de6e922e8fe254fef01d8de9996024b7
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
package org.jeecg.modules.dnc.service;
 
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.dnc.entity.ComponentDepartment;
import org.jeecg.modules.system.entity.MdcProduction;
 
import java.util.List;
public interface IComponentDepartmentService extends IService<ComponentDepartment> {
    /**
     * 根据部件id删除部门权限
     * @param componentId
     * @return
     */
    boolean deleteByComponentId(String componentId);
 
 
    /**
     * 获取已分配的部门
     * @param componentId
     * @return
     */
    List<MdcProduction> getDepartPermsByComponentId(String componentId);
 
    /**
     * 获取未分配的部门
     * @param componentId
     * @return
     */
    List<MdcProduction> getDepartNonPermsByComponentId(String componentId);
 
    /**
     * 获取唯一的部门权限
     * @param componentId
     * @param departId
     * @return
     */
    ComponentDepartment getByComponentIdAndDepartId(String componentId, String departId);
 
    /**
     * 删除部门权限
     * @param componentDepartments
     * @return
     */
    boolean removeByCollection(List<ComponentDepartment> componentDepartments);
 
    /**
     * 查询一组部门权限
     * @param componentIds
     * @param ids
     * @return
     */
    List<ComponentDepartment> getByComponentIdsAndDepartIds(List<String> componentIds, List<String> ids);
}