/** * Copyright 2018 人人开源 https://www.renren.io *

* This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. *

* This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. *

* You should have received a copy of the GNU General Public License * along with this program. If not, see . */ package com.epmet.service; import com.epmet.commons.mybatis.entity.DataScope; import com.epmet.commons.mybatis.service.BaseService; import com.epmet.commons.tools.page.PageData; import com.epmet.commons.tools.utils.Result; import com.epmet.dto.StaffRoleDTO; import com.epmet.dto.form.*; import com.epmet.dto.result.*; import com.epmet.entity.StaffRoleEntity; import java.util.List; import java.util.Set; /** * 工作人员-角色关系表 * * @author generator generator@elink-cn.com * @since v1.0.0 2020-04-22 */ public interface StaffRoleService extends BaseService { /** * 查询具有某角色的staff列表 * @param roleKey * @param orgId * @return */ List listStaffsInRole(String roleKey, String orgId, DataScope dataScope); /** * 清空工作人员权限 * @param dto */ void clearStaffRoles(StaffRoleDTO dto); /** * @Description 得到某一个员工在一个客户下的所有角色 * @Param CommonUserFormDTO :: getUserId :: getCustomerId * @return Result * @Author wangc * @Date 2020.04.26 10:59 **/ Result getStaffRoles(CommonUserFormDTO userParam); /** * @Description 查找具有特定角色的人员Id(可用) * @param rolesUsersListFormDTO * @return Result * @author wangc * @date 2020.04.29 23:44 **/ Result> getSpecificRolesStaffs(RolesUsersListFormDTO rolesUsersListFormDTO); /** * @Description 根据客户Id和staffId查询一个员工在指定客户下的角色列表 * @Author sun **/ List getCustomerStaffRoleList(CustomerStaffRoleListFormDTO formDTO); /** * 根据staffId查询人员拥有的所有角色信息 * @author zhaoqifeng * @date 2020/6/2 15:54 * @param staffId * @return java.util.List */ List getStaffRoles(String staffId); List getStaffRoleEntytiesByStaffIdAndOrgId(String agencyId, String staffId); /** * 更改角色组织 * @author zhaoqifeng * @date 2020/8/31 10:31 * @param formDTO * @return void */ void changeRoleOrg(StaffRoleDTO formDTO); /** * @Description 查询网格员角色 * @Param forms * @author zxc * @date 2021/6/8 4:42 下午 */ List staffGridRole(List forms); /** * 根据角色,查询里面的人,去重 * * @param formDTO * @return java.util.Set * @author yinzuomei * @date 2021/8/19 11:14 上午 */ Set queryRoleStaffIds(RoleStaffIdFormDTO formDTO); /** * desc: 条件获取 网格工作人员信息 * * @param formDTO * @return com.epmet.commons.tools.page.PageData * @author LiuJanJun * @date 2022/1/17 2:37 下午 */ PageData getGridStaffList(GridStaffFormDTO formDTO); }