fix: 修复 登入日志 组织机构为空 默认取 request token 的BUG

pull/14/head
Carina 3 years ago
parent 3887fbdd0f
commit 447fd369b3

@ -35,7 +35,7 @@ public final class UserLoginLogFactory {
loginInfo.setCreateBy(user.getId());
loginInfo.setUpdateBy(user.getId());
UserOrgRefModel orgByUserId = UserUtil.getUserDefOrgByUserId(user.getId());
loginInfo.setOrgIds(ObjectUtils.isEmpty(orgByUserId)? null : orgByUserId.getOrgIds() );
loginInfo.setOrgIds(ObjectUtils.isEmpty(orgByUserId)? "0" : orgByUserId.getOrgIds() );
loginInfo.setTenantId(StrUtil.blankToDefault(user.getTenantId(),null));
if(isLogin){

Loading…
Cancel
Save