master
chentaisen 2024-08-25 19:30:29 +08:00
parent 8241f3d4ba
commit 951f4ea1ae
1 changed files with 8 additions and 8 deletions

View File

@ -85,12 +85,12 @@ public class RuleController {
ExcelUtil<Rule> util = new ExcelUtil<Rule>(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);
}}));
}
}