update 优化 租户状态更改接口严谨性

2.X
疯狂的狮子Li 4 months ago
parent 992647fd14
commit 30a7db3624

@ -268,7 +268,10 @@ public class SysTenantServiceImpl implements ISysTenantService {
@CacheEvict(cacheNames = CacheNames.SYS_TENANT, key = "#bo.tenantId")
@Override
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);
}

Loading…
Cancel
Save