Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
黄嘉阳
/
iot-platform-server
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
1b47cb7a
authored
Nov 03, 2023
by
huangjy
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
fix:新增租户问题
parent
34f1def9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
server-service/src/main/java/com/makeit/service/saas/impl/PlatTenantServiceImpl.java
server-service/src/main/java/com/makeit/service/saas/impl/PlatTenantServiceImpl.java
View file @
1b47cb7a
...
...
@@ -8,6 +8,7 @@ import com.makeit.common.entity.BaseBusEntity;
import
com.makeit.common.entity.BaseEntity
;
import
com.makeit.common.page.PageReqDTO
;
import
com.makeit.common.page.PageVO
;
import
com.makeit.dto.platform.sys.PlatLogoConfigDTO
;
import
com.makeit.entity.platform.auth.PlatOrg
;
import
com.makeit.entity.platform.auth.PlatUser
;
import
com.makeit.entity.saas.PlatTenant
;
...
...
@@ -30,6 +31,7 @@ import com.makeit.module.iot.vo.OrganizationEntity;
import
com.makeit.module.system.service.SysConfigService
;
import
com.makeit.service.platform.auth.PlatOrgService
;
import
com.makeit.service.platform.auth.PlatUserService
;
import
com.makeit.service.platform.sys.PlatLogoConfigService
;
import
com.makeit.service.saas.PlatTenantMenuService
;
import
com.makeit.service.saas.PlatTenantService
;
import
com.makeit.service.saas.SaasUserService
;
...
...
@@ -81,6 +83,8 @@ public class PlatTenantServiceImpl extends ServiceImpl<PlatTenantMapper, PlatTen
@Autowired
private
IotOrgService
iotOrgService
;
@Autowired
private
PlatLogoConfigService
platLogoConfigService
;
private
LambdaQueryWrapper
<
PlatTenant
>
listLambdaQueryWrapper
(
PlatTenantVO
dto
,
boolean
userAccountLike
)
{
...
...
@@ -272,6 +276,10 @@ public class PlatTenantServiceImpl extends ServiceImpl<PlatTenantMapper, PlatTen
PlatOrg
platOrg
=
convertToPlatOrg
(
tntTenant
);
platOrgService
.
saveOrg
(
platOrg
);
PlatLogoConfigDTO
platLogoConfigDTO
=
new
PlatLogoConfigDTO
();
platLogoConfigDTO
.
setCode
(
dto
.
getCode
());
platLogoConfigDTO
.
setName
(
dto
.
getName
());
platLogoConfigService
.
add
(
platLogoConfigDTO
);
//分配菜单
assignMenuList
(
tntTenant
.
getId
(),
dto
.
getMenuIdList
());
return
tntTenant
.
getId
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment