fix:修复系统初始化时保存数据获取用户id为空问题
parent
c5ac5b66db
commit
246c6b4c37
|
@ -14,6 +14,6 @@ import java.util.Optional;
|
|||
public class UserIDAuditorConfig implements AuditorAware<Long> {
|
||||
@Override
|
||||
public Optional<Long> getCurrentAuditor() {
|
||||
return Optional.of(LoginHelper.getUserId());
|
||||
return Optional.of(LoginHelper.getUserId()==null?1l:LoginHelper.getUserId());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue