From 951f4ea1ae230fd1a7fdab99b89ff0ff0a419e9b Mon Sep 17 00:00:00 2001 From: chentaisen <14615430+chentaisen@user.noreply.gitee.com> Date: Sun, 25 Aug 2024 19:30:29 +0800 Subject: [PATCH] Changes --- .../com/muyu/rule/controller/RuleController.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/muyu-rule-server/src/main/java/com/muyu/rule/controller/RuleController.java b/muyu-rule-server/src/main/java/com/muyu/rule/controller/RuleController.java index 72c6def..2861109 100644 --- a/muyu-rule-server/src/main/java/com/muyu/rule/controller/RuleController.java +++ b/muyu-rule-server/src/main/java/com/muyu/rule/controller/RuleController.java @@ -85,12 +85,12 @@ public class RuleController { ExcelUtil util = new ExcelUtil(Rule.class); util.exportExcel(response, list, "规则"); } -// -// @GetMapping("/findById/{id}") -// @Operation(summary = "规则详细", description = "规则详细") -// public Result findById(@PathVariable("id") Long id) { -// return Result.success(ruleService.list(new LambdaQueryWrapper<>() {{ -// eq(Rule::getId, id); -// }})); -// } + + @GetMapping("/findById/{id}") + @Operation(summary = "规则详细", description = "规则详细") + public Result findById(@PathVariable("id") Long id) { + return Result.success(ruleService.list(new LambdaQueryWrapper<>() {{ + eq(Rule::getId, id); + }})); + } }