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