lyh
2025-01-17 ea704e018a27c26ef6deeaea4adc8a28b4d0b27e
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
package org.jeecg.modules.dnc.service;
 
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.dnc.entity.DeviceGroupDepart;
import org.jeecg.modules.dnc.ucenter.Department;
 
import java.util.List;
 
public interface IDeviceGroupDepartService extends IService<DeviceGroupDepart> {
    /**
     * 获取已分配的部门列表
     * @param groupId
     * @return
     */
    List<Department> getDepartPermsByGroupId(String groupId);
 
    /**
     * 获取未分配的部门列表
     * @param groupId
     * @return
     */
    List<Department> getDepartNonPermsByGroupId(String groupId);
 
    /**
     * 根据分组和部门查询唯一的权限数据
     * @param groupId
     * @param departId
     * @return
     */
    DeviceGroupDepart getDepartByGroupAndDepartId(String groupId, String departId);
 
    /**
     * 删除部门权限
     * @param departList
     * @return
     */
    boolean removeByCollection(List<DeviceGroupDepart> departList);
 
    /**
     * 根据groupId删除权限
     * @param groupId
     * @return
     */
    boolean deleteByGroupId(String groupId);
}