diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/pc/TRecordController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/pc/TRecordController.java index aaec73b..0c95a74 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/pc/TRecordController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/pc/TRecordController.java @@ -105,5 +105,11 @@ public class TRecordController extends BaseController return toAjax(tRecordService.deleteTRecordByIds(ids)); } - + @GetMapping("getInfo/{id}") + public AjaxResult getInfoById(@PathVariable("id") Long id){ + if(id == null){ + return AjaxResult.error("未获取到id"); + } + return AjaxResult.success(tRecordService.selectTById(id)); + } }