|
|
@ -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";
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|