update 优化 租户状态更改接口严谨性
This commit is contained in:
parent
a7fd7ba72c
commit
e5e8e3ce7c
@ -268,7 +268,10 @@ public class SysTenantServiceImpl implements ISysTenantService {
|
|||||||
@CacheEvict(cacheNames = CacheNames.SYS_TENANT, key = "#bo.tenantId")
|
@CacheEvict(cacheNames = CacheNames.SYS_TENANT, key = "#bo.tenantId")
|
||||||
@Override
|
@Override
|
||||||
public int updateTenantStatus(SysTenantBo bo) {
|
public int updateTenantStatus(SysTenantBo bo) {
|
||||||
SysTenant tenant = MapstructUtils.convert(bo, SysTenant.class);
|
SysTenant tenant = new SysTenant();
|
||||||
|
tenant.setId(bo.getId());
|
||||||
|
tenant.setTenantId(bo.getTenantId());
|
||||||
|
tenant.setStatus(bo.getStatus());
|
||||||
return baseMapper.updateById(tenant);
|
return baseMapper.updateById(tenant);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user