Commit 7c4e90b3 authored by 施翔轲's avatar 施翔轲

优化修改企业状态时过期时间改为当前时间

parent 06d3b882
...@@ -342,6 +342,9 @@ public class ISysTenantServiceImpl implements ISysTenantService { ...@@ -342,6 +342,9 @@ public class ISysTenantServiceImpl implements ISysTenantService {
@CacheEvict(cacheNames = CacheNames.SYS_TENANT, key = "#bo.tenantId") @CacheEvict(cacheNames = CacheNames.SYS_TENANT, key = "#bo.tenantId")
public Boolean updateByBo(SysTenantBo bo) { public Boolean updateByBo(SysTenantBo bo) {
SysTenant tenant = BeanUtil.toBean(bo, SysTenant.class); SysTenant tenant = BeanUtil.toBean(bo, SysTenant.class);
if (TenantConstants.DISABLE.equals(bo.getStatus())) {
tenant.setExpireTime(new DateTime());
}
tenant.setTenantId(null); tenant.setTenantId(null);
return baseMapper.updateById(tenant) > 0; return baseMapper.updateById(tenant) > 0;
} }
......
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 to comment