Browse Source

修复登录org_id_path

dev_shibei_match
wangxianzhang 3 years ago
parent
commit
c8250a8355
  1. 3
      epmet-auth/src/main/java/com/epmet/service/impl/GovWebServiceImpl.java

3
epmet-auth/src/main/java/com/epmet/service/impl/GovWebServiceImpl.java

@ -129,6 +129,7 @@ public class GovWebServiceImpl implements GovWebService {
log.error("工作人员信息不存在,customerId:{},userId:{}", customerId, userId);
throw new EpmetException(EpmetErrorCode.EPMET_COMMON_OPERATION_FAIL.getCode());
}
String orgIdPath = thirdLoginService.getOrgIdPath(userId);
int expire = jwtTokenProperties.getExpire();
GovTokenDto tokenDto = new GovTokenDto();
tokenDto.setCustomerId(customerId);
@ -143,7 +144,7 @@ public class GovWebServiceImpl implements GovWebService {
//tokenDto.setDeptIdList(thirdLoginService.getDeptartmentIdList(userId));
//tokenDto.setGridIdList(thirdLoginService.getGridIdList(userId));
//tokenDto.setRoleList(thirdLoginService.queryGovStaffRoles(userId, orgIdPathParts[orgIdPathParts.length - 1]));
//tokenDto.setOrgIdPath(orgIdPath);
tokenDto.setOrgIdPath(orgIdPath);
cpUserDetailRedis.set(tokenDto, expire);
}

Loading…
Cancel
Save