From 860e74672bd1f512543d0b50728a04e5c315764b Mon Sep 17 00:00:00 2001 From: 20918 <2091823062@qq.com> Date: Tue, 14 May 2024 17:30:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B6=89=E5=AF=86=E6=96=87=E4=BB=B6=E6=8E=A5?= =?UTF-8?q?=E6=94=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../filemanager/TdFileProvideController.java | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/filemanager/TdFileProvideController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/filemanager/TdFileProvideController.java index dd2ba0b..7c42917 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/filemanager/TdFileProvideController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/filemanager/TdFileProvideController.java @@ -103,6 +103,7 @@ public class TdFileProvideController extends BaseController public AjaxResult addSave(TdFileProvide tdFileProvide) { tdFileProvide.setFileId("File_"+Seq.getId(Seq.commSeqType)); + System.out.println(tdFileProvide.getTargetDepart()); return toAjax(tdFileProvideService.insertTdFileProvide(tdFileProvide)); } @@ -112,10 +113,11 @@ public class TdFileProvideController extends BaseController */ @RequiresPermissions("system:fileprovide:edit") @GetMapping("/edit/{fileId}") - public String edit(@PathVariable("fileId") String fileId, ModelMap mmap) + public String edit(@PathVariable("fileId") String fileId,SysDept dept, ModelMap mmap) { TdFileProvide tdFileProvide = tdFileProvideService.selectTdFileProvideByFileId(fileId); mmap.put("user",getSysUser()); + mmap.put("dept",deptService.selectDeptList(dept)); mmap.put("tdFileProvide", tdFileProvide); return prefix + "/edit"; } @@ -143,4 +145,17 @@ public class TdFileProvideController extends BaseController { return toAjax(tdFileProvideService.deleteTdFileProvideByFileIds(ids)); } + + /** + * 文件下发详情 + */ + @RequiresPermissions("system:fileprovide:detail") + @GetMapping("/detail/{fileId}") + public String detail(@PathVariable("fileId") String fileId,SysDept dept ,ModelMap mmap) + { + TdFileProvide tdFileProvide = tdFileProvideService.selectTdFileProvideByFileId(fileId); + mmap.put("dept",deptService.selectDeptList(dept)); + mmap.put("tdFileProvide", tdFileProvide); + return prefix + "/detail"; + } }