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
5d3b1d0c
authored
Dec 22, 2023
by
罗志长
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
fix: 租户编辑租户标识
parent
de2ec394
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
6 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 @
5d3b1d0c
...
...
@@ -25,6 +25,6 @@ public interface PlatLogoConfigService extends IService<PlatLogoConfig> {
*/
PlatLogoConfigDTOVO
view
(
PlatLogoConfigQueryDTO
dto
);
void
updateBy
Code
(
String
code
,
String
newC
ode
);
void
updateBy
TenantId
(
String
tenantId
,
String
c
ode
);
}
server-service/src/main/java/com/makeit/service/platform/sys/impl/PlatLogoConfigServiceImpl.java
View file @
5d3b1d0c
...
...
@@ -70,9 +70,9 @@ public class PlatLogoConfigServiceImpl extends ServiceImpl<PlatLogoConfigMapper,
@Override
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
void
updateBy
Code
(
String
code
,
String
newC
ode
)
{
public
void
updateBy
TenantId
(
String
tenantId
,
String
c
ode
)
{
LambdaUpdateWrapper
<
PlatLogoConfig
>
updateWrapper
=
new
LambdaUpdateWrapper
<>();
updateWrapper
.
set
(
PlatLogoConfig:
:
getCode
,
newCode
).
eq
(
PlatLogoConfig:
:
getCode
,
code
);
updateWrapper
.
set
(
PlatLogoConfig:
:
getCode
,
code
).
eq
(
PlatLogoConfig:
:
getTenantId
,
tenantId
);
update
(
updateWrapper
);
}
...
...
server-service/src/main/java/com/makeit/service/saas/impl/PlatTenantServiceImpl.java
View file @
5d3b1d0c
package
com
.
makeit
.
service
.
saas
.
impl
;
import
cn.binarywang.wx.miniapp.api.WxMaService
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
...
...
@@ -9,7 +8,6 @@ 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.config.WxMaConfiguration
;
import
com.makeit.dto.platform.sys.PlatLogoConfigDTO
;
import
com.makeit.entity.platform.auth.PlatOrg
;
import
com.makeit.entity.platform.auth.PlatUser
;
...
...
@@ -322,7 +320,7 @@ public class PlatTenantServiceImpl extends ServiceImpl<PlatTenantMapper, PlatTen
platOrgService
.
edit
(
platOrg
);
if
(!
platTenant
.
getCode
().
equals
(
dto
.
getCode
()))
{
platLogoConfigService
.
updateBy
Code
(
platTenant
.
getCode
(),
dto
.
getCode
());
platLogoConfigService
.
updateBy
TenantId
(
tntTenant
.
getId
(),
dto
.
getCode
());
}
//分配菜单 todo 慢
...
...
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