diff --git a/src/main/java/cn/lihongjie/coal/organization/dto/CreateOrganizationDto.java b/src/main/java/cn/lihongjie/coal/organization/dto/CreateOrganizationDto.java index fae66e08..eb211aeb 100644 --- a/src/main/java/cn/lihongjie/coal/organization/dto/CreateOrganizationDto.java +++ b/src/main/java/cn/lihongjie/coal/organization/dto/CreateOrganizationDto.java @@ -8,4 +8,7 @@ import lombok.Data; public class CreateOrganizationDto extends CommonDto { private String parentId; + + private String orgAdminUserName; + private String orgAdminPassword; } diff --git a/src/main/java/cn/lihongjie/coal/organization/service/OrganizationService.java b/src/main/java/cn/lihongjie/coal/organization/service/OrganizationService.java index 66d9a762..a9ed39be 100644 --- a/src/main/java/cn/lihongjie/coal/organization/service/OrganizationService.java +++ b/src/main/java/cn/lihongjie/coal/organization/service/OrganizationService.java @@ -9,6 +9,8 @@ import cn.lihongjie.coal.organization.dto.UpdateOrganizationDto; import cn.lihongjie.coal.organization.entity.OrganizationEntity; import cn.lihongjie.coal.organization.mapper.OrganizationMapper; import cn.lihongjie.coal.organization.repository.OrganizationRepository; +import cn.lihongjie.coal.user.dto.CreateUserDto; +import cn.lihongjie.coal.user.service.UserService; import jakarta.annotation.PostConstruct; @@ -30,6 +32,8 @@ public class OrganizationService extends BaseService()) + .stream() + .findAny() + .orElse(null); if (permission == null) {