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 @@