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
de2ec394
authored
Dec 22, 2023
by
罗志长
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
fix: 租户编辑租户标识
parent
9b27333c
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
0 deletions
server-service/src/main/java/com/makeit/service/platform/sys/PlatLogoConfigService.java
server-service/src/main/java/com/makeit/service/platform/sys/impl/PlatLogoConfigServiceImpl.java
server-service/src/main/java/com/makeit/service/saas/impl/PlatTenantServiceImpl.java
server-service/src/main/java/com/makeit/service/platform/sys/PlatLogoConfigService.java
View file @
de2ec394
...
@@ -24,4 +24,7 @@ public interface PlatLogoConfigService extends IService<PlatLogoConfig> {
...
@@ -24,4 +24,7 @@ public interface PlatLogoConfigService extends IService<PlatLogoConfig> {
* @return
* @return
*/
*/
PlatLogoConfigDTOVO
view
(
PlatLogoConfigQueryDTO
dto
);
PlatLogoConfigDTOVO
view
(
PlatLogoConfigQueryDTO
dto
);
void
updateByCode
(
String
code
,
String
newCode
);
}
}
server-service/src/main/java/com/makeit/service/platform/sys/impl/PlatLogoConfigServiceImpl.java
View file @
de2ec394
package
com
.
makeit
.
service
.
platform
.
sys
.
impl
;
package
com
.
makeit
.
service
.
platform
.
sys
.
impl
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.makeit.dto.platform.sys.PlatLogoConfigDTO
;
import
com.makeit.dto.platform.sys.PlatLogoConfigDTO
;
import
com.makeit.dto.platform.sys.PlatLogoConfigDTOVO
;
import
com.makeit.dto.platform.sys.PlatLogoConfigDTOVO
;
...
@@ -66,4 +67,13 @@ public class PlatLogoConfigServiceImpl extends ServiceImpl<PlatLogoConfigMapper,
...
@@ -66,4 +67,13 @@ public class PlatLogoConfigServiceImpl extends ServiceImpl<PlatLogoConfigMapper,
return
data
;
return
data
;
}
}
@Override
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
void
updateByCode
(
String
code
,
String
newCode
)
{
LambdaUpdateWrapper
<
PlatLogoConfig
>
updateWrapper
=
new
LambdaUpdateWrapper
<>();
updateWrapper
.
set
(
PlatLogoConfig:
:
getCode
,
newCode
).
eq
(
PlatLogoConfig:
:
getCode
,
code
);
update
(
updateWrapper
);
}
}
}
server-service/src/main/java/com/makeit/service/saas/impl/PlatTenantServiceImpl.java
View file @
de2ec394
...
@@ -321,6 +321,10 @@ public class PlatTenantServiceImpl extends ServiceImpl<PlatTenantMapper, PlatTen
...
@@ -321,6 +321,10 @@ public class PlatTenantServiceImpl extends ServiceImpl<PlatTenantMapper, PlatTen
//更新组织表
//更新组织表
platOrgService
.
edit
(
platOrg
);
platOrgService
.
edit
(
platOrg
);
if
(!
platTenant
.
getCode
().
equals
(
dto
.
getCode
()))
{
platLogoConfigService
.
updateByCode
(
platTenant
.
getCode
(),
dto
.
getCode
());
}
//分配菜单 todo 慢
//分配菜单 todo 慢
assignMenuList
(
tntTenant
.
getId
(),
dto
.
getMenuIdList
());
assignMenuList
(
tntTenant
.
getId
(),
dto
.
getMenuIdList
());
...
...
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