fix:利元亨即时通获取token传的是工号

This commit is contained in:
2026-03-25 11:08:56 +08:00
parent a0ab5c9a0b
commit b23087d714

View File

@@ -288,6 +288,13 @@ public class SpdmUserController {
String authHeader = "Basic " + new String(encodedAuth); String authHeader = "Basic " + new String(encodedAuth);
Long tenantId = 1979091834410176514L; Long tenantId = 1979091834410176514L;
// 利元亨传工号
R<List<SysUserVO>> sysUserVOR = remoteUserServiceFeign.getUserListByUserName(String.valueOf(userParamDto.getUserId()));
if (CollectionUtils.isNotEmpty(sysUserVOR.getData())) {
userParamDto.setUserId(sysUserVOR.getData().get(0).getUserId());
}
R<List<SysStaffVO>> staffListReturn = remoteTenantServiceFeign.findStaffListByUserId(userParamDto.getUserId(), SecurityConstants.FROM_IN); R<List<SysStaffVO>> staffListReturn = remoteTenantServiceFeign.findStaffListByUserId(userParamDto.getUserId(), SecurityConstants.FROM_IN);
List<SysStaffVO> staffList = staffListReturn.getData(); List<SysStaffVO> staffList = staffListReturn.getData();
if (CollectionUtils.isNotEmpty(staffList)) { if (CollectionUtils.isNotEmpty(staffList)) {