forked from rongchao/epmet-cloud-rizhao
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
125 lines
3.8 KiB
125 lines
3.8 KiB
/**
|
|
* Copyright 2018 人人开源 https://www.renren.io
|
|
* <p>
|
|
* 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.
|
|
* <p>
|
|
* 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.
|
|
* <p>
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
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<StaffRoleEntity> {
|
|
|
|
/**
|
|
* 查询具有某角色的staff列表
|
|
* @param roleKey
|
|
* @param orgId
|
|
* @return
|
|
*/
|
|
List<GovStaffRoleResultDTO> listStaffsInRole(String roleKey, String orgId, DataScope dataScope);
|
|
|
|
/**
|
|
* 清空工作人员权限
|
|
* @param dto
|
|
*/
|
|
void clearStaffRoles(StaffRoleDTO dto);
|
|
|
|
/**
|
|
* @Description 得到某一个员工在一个客户下的所有角色
|
|
* @Param CommonUserFormDTO :: getUserId :: getCustomerId
|
|
* @return Result<StaffRolesResultDTO>
|
|
* @Author wangc
|
|
* @Date 2020.04.26 10:59
|
|
**/
|
|
Result<StaffRolesResultDTO> getStaffRoles(CommonUserFormDTO userParam);
|
|
|
|
/**
|
|
* @Description 查找具有特定角色的人员Id(可用)
|
|
* @param rolesUsersListFormDTO
|
|
* @return Result<String>
|
|
* @author wangc
|
|
* @date 2020.04.29 23:44
|
|
**/
|
|
Result<List<String>> getSpecificRolesStaffs(RolesUsersListFormDTO rolesUsersListFormDTO);
|
|
|
|
/**
|
|
* @Description 根据客户Id和staffId查询一个员工在指定客户下的角色列表
|
|
* @Author sun
|
|
**/
|
|
List<CustomerStaffRoleListResultDTO> getCustomerStaffRoleList(CustomerStaffRoleListFormDTO formDTO);
|
|
|
|
/**
|
|
* 根据staffId查询人员拥有的所有角色信息
|
|
* @author zhaoqifeng
|
|
* @date 2020/6/2 15:54
|
|
* @param staffId
|
|
* @return java.util.List<com.epmet.dto.result.CustomerStaffRoleResultDTO>
|
|
*/
|
|
List<CustomerStaffRoleResultDTO> getStaffRoles(String staffId);
|
|
|
|
List<StaffRoleEntity> 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<GridStaffResultDTO> staffGridRole(List<GridStaffResultDTO> forms);
|
|
|
|
/**
|
|
* 根据角色,查询里面的人,去重
|
|
*
|
|
* @param formDTO
|
|
* @return java.util.Set<java.lang.String>
|
|
* @author yinzuomei
|
|
* @date 2021/8/19 11:14 上午
|
|
*/
|
|
Set<String> queryRoleStaffIds(RoleStaffIdFormDTO formDTO);
|
|
|
|
/**
|
|
* desc: 条件获取 网格工作人员信息
|
|
*
|
|
* @param formDTO
|
|
* @return com.epmet.commons.tools.page.PageData<com.epmet.dto.result.CustomerStaffResultDTO>
|
|
* @author LiuJanJun
|
|
* @date 2022/1/17 2:37 下午
|
|
*/
|
|
PageData<CustomerGridStaffResultDTO> getGridStaffList(GridStaffFormDTO formDTO);
|
|
}
|
|
|