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.
		
		
		
		
		
			
		
			
				
					
					
						
							162 lines
						
					
					
						
							4.4 KiB
						
					
					
				
			
		
		
		
			
			
			
				
					
				
				
					
				
			
		
		
	
	
							162 lines
						
					
					
						
							4.4 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.CommonUserFormDTO; | |
| import com.epmet.dto.form.CustomerStaffRoleListFormDTO; | |
| import com.epmet.dto.form.RolesUsersListFormDTO; | |
| import com.epmet.dto.result.CustomerStaffRoleResultDTO; | |
| import com.epmet.dto.result.CustomerStaffRoleListResultDTO; | |
| import com.epmet.dto.result.GovStaffRoleResultDTO; | |
| import com.epmet.dto.result.StaffRolesResultDTO; | |
| import com.epmet.entity.StaffRoleEntity; | |
| 
 | |
| import java.util.List; | |
| import java.util.Map; | |
| 
 | |
| /** | |
|  * 工作人员-角色关系表 | |
|  * | |
|  * @author generator generator@elink-cn.com | |
|  * @since v1.0.0 2020-04-22 | |
|  */ | |
| public interface StaffRoleService extends BaseService<StaffRoleEntity> { | |
| 
 | |
|     /** | |
|      * 默认分页 | |
|      * | |
|      * @param params | |
|      * @return PageData<StaffRoleDTO> | |
|      * @author generator | |
|      * @date 2020-04-22 | |
|      */ | |
|     PageData<StaffRoleDTO> page(Map<String, Object> params); | |
| 
 | |
|     /** | |
|      * 默认查询 | |
|      * | |
|      * @param params | |
|      * @return java.util.List<StaffRoleDTO> | |
|      * @author generator | |
|      * @date 2020-04-22 | |
|      */ | |
|     List<StaffRoleDTO> list(Map<String, Object> params); | |
| 
 | |
|     /** | |
|      * 单条查询 | |
|      * | |
|      * @param id | |
|      * @return StaffRoleDTO | |
|      * @author generator | |
|      * @date 2020-04-22 | |
|      */ | |
|     StaffRoleDTO get(String id); | |
| 
 | |
|     /** | |
|      * 默认保存 | |
|      * | |
|      * @param dto | |
|      * @return void | |
|      * @author generator | |
|      * @date 2020-04-22 | |
|      */ | |
|     void save(StaffRoleDTO dto); | |
| 
 | |
|     /** | |
|      * 默认更新 | |
|      * | |
|      * @param dto | |
|      * @return void | |
|      * @author generator | |
|      * @date 2020-04-22 | |
|      */ | |
|     void update(StaffRoleDTO dto); | |
| 
 | |
|     /** | |
|      * 批量删除 | |
|      * | |
|      * @param ids | |
|      * @return void | |
|      * @author generator | |
|      * @date 2020-04-22 | |
|      */ | |
|     void delete(String[] ids); | |
| 
 | |
|     /** | |
|      * 查询具有某角色的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); | |
| } |