涉密文件接收

master
20918 11 months ago
parent 4917f50856
commit 860e74672b

@ -103,6 +103,7 @@ public class TdFileProvideController extends BaseController
public AjaxResult addSave(TdFileProvide tdFileProvide) public AjaxResult addSave(TdFileProvide tdFileProvide)
{ {
tdFileProvide.setFileId("File_"+Seq.getId(Seq.commSeqType)); tdFileProvide.setFileId("File_"+Seq.getId(Seq.commSeqType));
System.out.println(tdFileProvide.getTargetDepart()); System.out.println(tdFileProvide.getTargetDepart());
return toAjax(tdFileProvideService.insertTdFileProvide(tdFileProvide)); return toAjax(tdFileProvideService.insertTdFileProvide(tdFileProvide));
} }
@ -112,10 +113,11 @@ public class TdFileProvideController extends BaseController
*/ */
@RequiresPermissions("system:fileprovide:edit") @RequiresPermissions("system:fileprovide:edit")
@GetMapping("/edit/{fileId}") @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); TdFileProvide tdFileProvide = tdFileProvideService.selectTdFileProvideByFileId(fileId);
mmap.put("user",getSysUser()); mmap.put("user",getSysUser());
mmap.put("dept",deptService.selectDeptList(dept));
mmap.put("tdFileProvide", tdFileProvide); mmap.put("tdFileProvide", tdFileProvide);
return prefix + "/edit"; return prefix + "/edit";
} }
@ -143,4 +145,17 @@ public class TdFileProvideController extends BaseController
{ {
return toAjax(tdFileProvideService.deleteTdFileProvideByFileIds(ids)); 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";
}
} }

Loading…
Cancel
Save