update updateUserStatus>updateClientStatus 正确命名方法,实际修改的是client

This commit is contained in:
cxh 2024-12-12 10:11:11 +08:00
parent b90f30dbe4
commit fadaf3efc6
3 changed files with 3 additions and 3 deletions

View File

@ -97,7 +97,7 @@ public class SysClientController extends BaseController {
@Log(title = "客户端管理", businessType = BusinessType.UPDATE) @Log(title = "客户端管理", businessType = BusinessType.UPDATE)
@PutMapping("/changeStatus") @PutMapping("/changeStatus")
public R<Void> changeStatus(@RequestBody SysClientBo bo) { public R<Void> changeStatus(@RequestBody SysClientBo bo) {
return toAjax(sysClientService.updateUserStatus(bo.getClientId(), bo.getStatus())); return toAjax(sysClientService.updateClientStatus(bo.getClientId(), bo.getStatus()));
} }
/** /**

View File

@ -50,7 +50,7 @@ public interface ISysClientService {
/** /**
* 修改状态 * 修改状态
*/ */
int updateUserStatus(String clientId, String status); int updateClientStatus(String clientId, String status);
/** /**
* 校验并批量删除客户端管理信息 * 校验并批量删除客户端管理信息

View File

@ -123,7 +123,7 @@ public class SysClientServiceImpl implements ISysClientService {
*/ */
@CacheEvict(cacheNames = CacheNames.SYS_CLIENT, key = "#clientId") @CacheEvict(cacheNames = CacheNames.SYS_CLIENT, key = "#clientId")
@Override @Override
public int updateUserStatus(String clientId, String status) { public int updateClientStatus(String clientId, String status) {
return baseMapper.update(null, return baseMapper.update(null,
new LambdaUpdateWrapper<SysClient>() new LambdaUpdateWrapper<SysClient>()
.set(SysClient::getStatus, status) .set(SysClient::getStatus, status)