diff --git a/opsli-modulars/opsli-modulars-system/src/main/java/org/opsli/modulars/system/logs/factory/UserLoginLogFactory.java b/opsli-modulars/opsli-modulars-system/src/main/java/org/opsli/modulars/system/logs/factory/UserLoginLogFactory.java index f93e8044..b99dfc35 100644 --- a/opsli-modulars/opsli-modulars-system/src/main/java/org/opsli/modulars/system/logs/factory/UserLoginLogFactory.java +++ b/opsli-modulars/opsli-modulars-system/src/main/java/org/opsli/modulars/system/logs/factory/UserLoginLogFactory.java @@ -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){