Browse Source

Merge branch 'develop' of gitadmin/tuoheng_oidc into release

tags/v2.4.1
xuziqing 1 year ago
parent
commit
7334dbab2a
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      tuoheng_oidc_admin/src/main/java/com/tuoheng/service/impl/TenantServiceImpl.java

+ 2
- 0
tuoheng_oidc_admin/src/main/java/com/tuoheng/service/impl/TenantServiceImpl.java View File

@@ -683,7 +683,9 @@ public class TenantServiceImpl implements TenantService {
.setId(dto.getId());
tenantMapper.updateById(tenant);
log.info("租户基本信息更新完毕");
TenantItem oldTenantItem = tenantItemMapper.selectOne(Wrappers.<TenantItem>lambdaQuery().eq(TenantItem::getTenantId, dto.getId()));
TenantItem tenantItem = dto.getTenantItem();
tenantItem.setId(oldTenantItem.getId());
tenantItemMapper.updateById(tenantItem);
vo.setEffectiveDate(DateUtil.formatDate(tenantItem.getBeginTime()) + CommonConstant.TILDE + DateUtil.formatDate(tenantItem.getEndTime()));
log.info("租户项目相关信息更新完毕");

Loading…
Cancel
Save