|
|
@@ -3,18 +3,13 @@ package com.tuoheng.admin.service.user.init; |
|
|
|
import cn.hutool.core.util.ObjectUtil; |
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
|
|
|
import com.tuoheng.admin.constant.SystemConstant; |
|
|
|
import com.tuoheng.admin.entity.Dept; |
|
|
|
import com.tuoheng.admin.entity.Role; |
|
|
|
import com.tuoheng.admin.entity.Tenant; |
|
|
|
import com.tuoheng.admin.entity.User; |
|
|
|
import com.tuoheng.admin.enums.code.user.AddUserCodeEnum; |
|
|
|
import com.tuoheng.admin.mapper.DeptMapper; |
|
|
|
import com.tuoheng.admin.mapper.RoleMapper; |
|
|
|
import com.tuoheng.admin.mapper.TenantMapper; |
|
|
|
import com.tuoheng.admin.mapper.UserMapper; |
|
|
|
import com.tuoheng.admin.service.third.oidc.OidcService; |
|
|
|
import com.tuoheng.admin.utils.CurrentUserUtil; |
|
|
|
import com.tuoheng.common.core.config.common.CommonConfig; |
|
|
|
import com.tuoheng.common.core.utils.CommonUtils; |
|
|
|
import com.tuoheng.common.core.utils.DateUtils; |
|
|
|
import com.tuoheng.common.core.utils.JsonResult; |
|
|
@@ -105,7 +100,6 @@ public class SystemUserInitService { |
|
|
|
user.setDeptId(""); |
|
|
|
user.setStatus(1); |
|
|
|
user.setTenantId(tenantId); |
|
|
|
user.setCreateUser(CurrentUserUtil.getUserId()); |
|
|
|
user.setCreateTime(DateUtils.now()); |
|
|
|
return user; |
|
|
|
} |