zxl
8 天以前 0fb6b9d8d414822668c401a2b507df1fe6d1fa2d
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
package cn.lili.modules.member.service;
 
import cn.lili.modules.member.entity.dos.StoreDepartmentRole;
import com.baomidou.mybatisplus.extension.service.IService;
 
import java.util.List;
 
/**
 * 部门角色业务层
 *
 * @author Chopper
 * @since 2020/11/22 12:08
 */
public interface StoreDepartmentRoleService extends IService<StoreDepartmentRole> {
 
    /**
     * 根据部门获取角色集合
     *
     * @param storeDepartmentId 店铺部门id
     * @return
     */
    List<StoreDepartmentRole> listByDepartmentId(String storeDepartmentId);
 
    /**
     * 更新部门角色关联
     *
     * @param storeDepartmentId    店铺部门id
     * @param storeDepartmentRoles 店铺部门角色
     */
    void updateByDepartmentId(String storeDepartmentId, List<StoreDepartmentRole> storeDepartmentRoles);
 
    /**
     * 根据部门id删除部门与角色关联
     *
     * @param ids id集合
     */
    void deleteByDepartment(List<String> ids);
}