From b8d66f7c73ea13bc8c160e0662fa72d036f0e924 Mon Sep 17 00:00:00 2001 From: chenfei <18955928961@163.com> Date: Tue, 9 Aug 2022 10:20:09 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8E=B7=E5=8F=96=E6=82=A3=E8=80=85=E8=AE=B0?= =?UTF-8?q?=E5=BD=95=E8=AF=A6=E6=83=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/ruoyi/web/controller/pc/TRecordController.java | 2 +- .../src/main/java/com/ruoyi/system/mapper/TRecordMapper.java | 2 +- .../main/java/com/ruoyi/system/service/ITRecordService.java | 2 +- .../com/ruoyi/system/service/impl/TRecordServiceImpl.java | 4 ++-- .../src/main/resources/mapper/system/TRecordMapper.xml | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) 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 0c95a74..b5ab255 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 @@ -110,6 +110,6 @@ public class TRecordController extends BaseController if(id == null){ return AjaxResult.error("未获取到id"); } - return AjaxResult.success(tRecordService.selectTById(id)); + return AjaxResult.success(tRecordService.selectById(id)); } } diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/mapper/TRecordMapper.java b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/TRecordMapper.java index 3ca39b0..b7d018a 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/system/mapper/TRecordMapper.java +++ b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/TRecordMapper.java @@ -65,5 +65,5 @@ public interface TRecordMapper List selectTRecordListWithoutResult(TRecordResultReq tRecord); - TRecordResp selectTById(Long id); + TRecordResp selectById(Long id); } diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/ITRecordService.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/ITRecordService.java index 449f570..d9f6c20 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/system/service/ITRecordService.java +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/ITRecordService.java @@ -63,5 +63,5 @@ public interface ITRecordService List selectTRecordListWithoutResult(TRecordResultReq tRecord); - TRecordResp selectTById(Long id); + TRecordResp selectById(Long id); } diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/TRecordServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/TRecordServiceImpl.java index f30b620..8e0595d 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/TRecordServiceImpl.java +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/TRecordServiceImpl.java @@ -103,8 +103,8 @@ public class TRecordServiceImpl implements ITRecordService } @Override - public TRecordResp selectTById(Long id) + public TRecordResp selectById(Long id) { - return tRecordMapper.selectTById(id); + return tRecordMapper.selectById(id); } } diff --git a/ruoyi-system/src/main/resources/mapper/system/TRecordMapper.xml b/ruoyi-system/src/main/resources/mapper/system/TRecordMapper.xml index 713bcc9..b860c0d 100644 --- a/ruoyi-system/src/main/resources/mapper/system/TRecordMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/system/TRecordMapper.xml @@ -190,7 +190,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" - where id = #{id}