From d879b4146108ce94534cf95fd72d7efbf5cdbe5e Mon Sep 17 00:00:00 2001 From: wjie <1561342639@qq.com> Date: Mon, 9 Aug 2021 15:45:47 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20Fixing=20a=20bug.=20closed=20#I44K4D?= =?UTF-8?q?=E3=80=90=E5=AE=A2=E6=88=B7=E7=AB=AF=E7=AE=A1=E7=90=86=E3=80=91?= =?UTF-8?q?=E6=A0=A1=E9=AA=8C=E9=80=BB=E8=BE=91=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../admin/controller/OauthClientDetailsController.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pig-upms/pig-upms-biz/src/main/java/com/pig4cloud/pig/admin/controller/OauthClientDetailsController.java b/pig-upms/pig-upms-biz/src/main/java/com/pig4cloud/pig/admin/controller/OauthClientDetailsController.java index c554f62c..fbe57f70 100644 --- a/pig-upms/pig-upms-biz/src/main/java/com/pig4cloud/pig/admin/controller/OauthClientDetailsController.java +++ b/pig-upms/pig-upms-biz/src/main/java/com/pig4cloud/pig/admin/controller/OauthClientDetailsController.java @@ -50,11 +50,11 @@ public class OauthClientDetailsController { * @param id clientId * @return SysOauthClientDetails */ - @GetMapping("/{id}") - public R getById(@PathVariable String id) { - return R.ok(sysOauthClientDetailsService.getById(id)); + @GetMapping("/{clientId}") + public R getByClientId(@PathVariable String clientId) { + return R.ok(sysOauthClientDetailsService + .list(Wrappers.lambdaQuery().eq(SysOauthClientDetails::getClientId, clientId))); } - /** * 简单分页查询 * @param page 分页对象