master
chentaisen 2024-08-25 19:28:43 +08:00
parent 7cc809d458
commit 8241f3d4ba
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);
// }}));
// }
}