Explorar o código

租户管理员特殊标记

wangli %!s(int64=4) %!d(string=hai) anos
pai
achega
f8761517f6

+ 1 - 1
user_center/src/main/java/com/huaxu/service/impl/TenantServiceImpl.java

@@ -174,7 +174,7 @@ public class TenantServiceImpl implements TenantService {
         userEntity.setStatus(1);
         userEntity.setPhone(tenantDto.getPhone());
         userEntity.setUsername(tenantDto.getUserName());
-        userEntity.setUserType("1");//租户系统管理员
+        userEntity.setUserType("-999");//租户系统管理员
         userEntity.setRoleId(role.getId().longValue()); //赋值角色
         userEntity.setCompanyOrgId(org.getId().longValue());//公司
         userEntity.setDeptOrgId(org.getId().longValue());//机构