From 8fb4af9178356d60bbd71d33bb96b7704da26622 Mon Sep 17 00:00:00 2001 From: wangxy <1481820854@qq.com> Date: Thu, 7 Nov 2024 15:43:44 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E7=80=9A=E9=AB=98=E9=80=82=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../system/system/TdIndentureController.java | 2 +- .../system/system/TdTrainController.java | 18 ++++++++--------- .../resources/templates/system/train/add.html | 10 +++++----- .../templates/system/train/detail.html | 10 +++++----- .../templates/system/train/edit.html | 18 ++++++++--------- .../templates/system/train/examine.html | 20 +++++++++---------- .../templates/system/train/train.html | 4 ++-- .../system/mapper/TdIndentureMapper.java | 4 ++-- .../ruoyi/system/mapper/TdLeaveMapper.java | 2 +- .../ruoyi/system/mapper/TdTrainMapper.java | 2 +- .../system/service/ITdIndentureService.java | 2 +- .../service/impl/TdIndentureServiceImpl.java | 4 ++-- .../service/impl/TdLeaveServiceImpl.java | 2 +- .../service/impl/TdTrainServiceImpl.java | 2 +- .../mapper/system/TdIndentureMapper.xml | 8 ++++---- .../resources/mapper/system/TdLeaveMapper.xml | 2 +- .../mapper/system/TdPropertyInfoMapper.xml | 10 +++++----- .../resources/mapper/system/TdTrainMapper.xml | 4 ++-- 18 files changed, 62 insertions(+), 62 deletions(-) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/system/TdIndentureController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/system/TdIndentureController.java index 270b517..4272ac4 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/system/TdIndentureController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/system/TdIndentureController.java @@ -99,7 +99,7 @@ public class TdIndentureController extends BaseController */ @RequiresPermissions("system:indenture:edit") @GetMapping("/edit/{indentureId}") - public String edit(@PathVariable("indentureId") String indentureId, ModelMap mmap) + public String edit(@PathVariable("indentureId") Long indentureId, ModelMap mmap) { TdIndenture tdIndenture = tdIndentureService.selectTdIndentureByIndentureId(indentureId); mmap.put("tdIndenture", tdIndenture); diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/system/TdTrainController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/system/TdTrainController.java index a0af4d3..51be34b 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/system/TdTrainController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/system/TdTrainController.java @@ -109,11 +109,11 @@ public class TdTrainController extends BaseController * 修改涉密人员培训 */ @RequiresPermissions("system:train:edit") - @GetMapping("/edit/{ID}") - public String edit(@PathVariable("ID") Long ID, ModelMap mmap) + @GetMapping("/edit/{id}") + public String edit(@PathVariable("id") Long id, ModelMap mmap) { - TdTrain tdTrain = tdTrainService.selectTdTrainByID(ID); + TdTrain tdTrain = tdTrainService.selectTdTrainByID(id); mmap.put("tdTrain", tdTrain); return prefix + "/edit"; } @@ -149,10 +149,10 @@ public class TdTrainController extends BaseController * 培训记录详情 */ @RequiresPermissions("system:train:detail") - @GetMapping("/detail/{ID}") - public String detail(@PathVariable("ID") Long ID, ModelMap mmap) + @GetMapping("/detail/{id}") + public String detail(@PathVariable("id") Long id, ModelMap mmap) { - mmap.put("tdTrain", tdTrainService.selectTdTrainByID(ID)); + mmap.put("tdTrain", tdTrainService.selectTdTrainByID(id)); SysUser user = getSysUser(); mmap.put("user", user); return prefix + "/detail"; @@ -162,10 +162,10 @@ public class TdTrainController extends BaseController * 审核涉密人员培训 */ @RequiresPermissions("system:train:examine") - @GetMapping("/examine/{ID}") - public String examine(@PathVariable("ID") Long ID, ModelMap mmap) + @GetMapping("/examine/{id}") + public String examine(@PathVariable("id") Long id, ModelMap mmap) { - TdTrain tdTrain = tdTrainService.selectTdTrainByID(ID); + TdTrain tdTrain = tdTrainService.selectTdTrainByID(id); SysUser user = getSysUser(); mmap.put("tdTrain", tdTrain); mmap.put("user", user); diff --git a/ruoyi-admin/src/main/resources/templates/system/train/add.html b/ruoyi-admin/src/main/resources/templates/system/train/add.html index 587edc7..bbd1d44 100644 --- a/ruoyi-admin/src/main/resources/templates/system/train/add.html +++ b/ruoyi-admin/src/main/resources/templates/system/train/add.html @@ -14,7 +14,7 @@
-