🐛 Fixing a bug. closed #I44K4D【客户端管理】校验逻辑问题

This commit is contained in:
wjie 2021-08-09 15:45:47 +08:00
parent 9fcf06d030
commit d879b41461

View File

@ -50,11 +50,11 @@ public class OauthClientDetailsController {
* @param id clientId * @param id clientId
* @return SysOauthClientDetails * @return SysOauthClientDetails
*/ */
@GetMapping("/{id}") @GetMapping("/{clientId}")
public R getById(@PathVariable String id) { public R getByClientId(@PathVariable String clientId) {
return R.ok(sysOauthClientDetailsService.getById(id)); return R.ok(sysOauthClientDetailsService
.list(Wrappers.<SysOauthClientDetails>lambdaQuery().eq(SysOauthClientDetails::getClientId, clientId)));
} }
/** /**
* 简单分页查询 * 简单分页查询
* @param page 分页对象 * @param page 分页对象