Changes
parent
8241f3d4ba
commit
951f4ea1ae
|
@ -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);
|
||||
}}));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue