Commit 5d3b1d0c by 罗志长

fix: 租户编辑租户标识

parent de2ec394
...@@ -25,6 +25,6 @@ public interface PlatLogoConfigService extends IService<PlatLogoConfig> { ...@@ -25,6 +25,6 @@ public interface PlatLogoConfigService extends IService<PlatLogoConfig> {
*/ */
PlatLogoConfigDTOVO view(PlatLogoConfigQueryDTO dto); PlatLogoConfigDTOVO view(PlatLogoConfigQueryDTO dto);
void updateByCode(String code, String newCode); void updateByTenantId(String tenantId, String code);
} }
...@@ -70,9 +70,9 @@ public class PlatLogoConfigServiceImpl extends ServiceImpl<PlatLogoConfigMapper, ...@@ -70,9 +70,9 @@ public class PlatLogoConfigServiceImpl extends ServiceImpl<PlatLogoConfigMapper,
@Override @Override
@Transactional(rollbackFor = Exception.class) @Transactional(rollbackFor = Exception.class)
public void updateByCode(String code, String newCode) { public void updateByTenantId(String tenantId, String code) {
LambdaUpdateWrapper<PlatLogoConfig> updateWrapper = new LambdaUpdateWrapper<>(); 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); update(updateWrapper);
} }
......
package com.makeit.service.saas.impl; 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.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
...@@ -9,7 +8,6 @@ import com.makeit.common.entity.BaseBusEntity; ...@@ -9,7 +8,6 @@ import com.makeit.common.entity.BaseBusEntity;
import com.makeit.common.entity.BaseEntity; import com.makeit.common.entity.BaseEntity;
import com.makeit.common.page.PageReqDTO; import com.makeit.common.page.PageReqDTO;
import com.makeit.common.page.PageVO; import com.makeit.common.page.PageVO;
import com.makeit.config.WxMaConfiguration;
import com.makeit.dto.platform.sys.PlatLogoConfigDTO; import com.makeit.dto.platform.sys.PlatLogoConfigDTO;
import com.makeit.entity.platform.auth.PlatOrg; import com.makeit.entity.platform.auth.PlatOrg;
import com.makeit.entity.platform.auth.PlatUser; import com.makeit.entity.platform.auth.PlatUser;
...@@ -322,7 +320,7 @@ public class PlatTenantServiceImpl extends ServiceImpl<PlatTenantMapper, PlatTen ...@@ -322,7 +320,7 @@ public class PlatTenantServiceImpl extends ServiceImpl<PlatTenantMapper, PlatTen
platOrgService.edit(platOrg); platOrgService.edit(platOrg);
if (!platTenant.getCode().equals(dto.getCode())) { if (!platTenant.getCode().equals(dto.getCode())) {
platLogoConfigService.updateByCode(platTenant.getCode(), dto.getCode()); platLogoConfigService.updateByTenantId(tntTenant.getId(), dto.getCode());
} }
//分配菜单 todo 慢 //分配菜单 todo 慢
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment