|
|
@ -31,6 +31,7 @@ import com.epmet.commons.tools.utils.ConvertUtils; |
|
|
|
import com.epmet.commons.tools.utils.CpUserDetailRedis; |
|
|
|
import com.epmet.commons.tools.utils.Result; |
|
|
|
import com.epmet.constant.CustomerStaffConstant; |
|
|
|
import com.epmet.constant.RoleKeyConstants; |
|
|
|
import com.epmet.constant.UserConstant; |
|
|
|
import com.epmet.constant.UserRoleConstant; |
|
|
|
import com.epmet.dao.CustomerStaffDao; |
|
|
@ -244,7 +245,10 @@ public class CustomerStaffServiceImpl extends BaseServiceImpl<CustomerStaffDao, |
|
|
|
List<GovStaffRoleDTO> roleList = govStaffRoleService.getGovStaffRoleList(govStaffRoleDTO); |
|
|
|
//获取工作人员角色
|
|
|
|
List<GovStaffRoleEntity> staffRoles = govStaffRoleService.listRolesByStaffId(fromDTO.getStaffId(), fromDTO.getAgencyId()); |
|
|
|
List<StaffRoleResultDTO> staffRoleList = roleList.stream().map(p -> { |
|
|
|
List<StaffRoleResultDTO> staffRoleList = roleList |
|
|
|
.stream() |
|
|
|
.filter(p -> !RoleKeyConstants.ROLE_KEY_ROOT_MANAGER.equals(p.getRoleKey())) |
|
|
|
.map(p -> { |
|
|
|
StaffRoleResultDTO staffRoleResultDTO = new StaffRoleResultDTO(); |
|
|
|
staffRoleResultDTO.setRoleId(p.getId()); |
|
|
|
staffRoleResultDTO.setRoleName(p.getRoleName()); |
|
|
|