|
@@ -1,6 +1,7 @@
|
|
|
package com.steerinfo.ftp.uploadfile.controller;
|
|
|
|
|
|
import com.steerinfo.auth.utils.JwtUtil;
|
|
|
+import com.steerinfo.ems.Utils.TreeUtils;
|
|
|
import com.steerinfo.framework.controller.BaseRESTfulController;
|
|
|
import com.steerinfo.framework.controller.RESTfulResult;
|
|
|
import com.steerinfo.framework.service.pagehelper.PageList;
|
|
@@ -222,4 +223,21 @@ public class UploadFileController extends BaseRESTfulController {
|
|
|
Set<UploadFile> idAndName = uploadFileService.getIdAndName();
|
|
|
return success(idAndName);
|
|
|
}
|
|
|
+
|
|
|
+ @ApiOperation(value="获取树状数据", notes="获取TRmWorkproc的树形数据")
|
|
|
+ @GetMapping(value = "/getFileTree/")
|
|
|
+ public RESTfulResult getTree(@RequestParam HashMap parameters){
|
|
|
+ String fileType = parameters.get("fileType").toString().replace(",","|");
|
|
|
+ parameters.put("fileType",fileType);
|
|
|
+ TreeUtils treeUtils = new TreeUtils();
|
|
|
+ String securityInfo = parameters.get("securityInfo").toString().replaceAll(",","|");
|
|
|
+ //String[] securityInfo =parameters.get("securityInfo").toString().split(",");
|
|
|
+ List<UploadFile> lists = uploadFileService.getTreeByParameters(parameters);
|
|
|
+ //for (int i = 0; i <securityInfo.length; i++) {
|
|
|
+ //List<SecurityType> list = securityTypeService.getTreeByInfo(securityInfo[i]);
|
|
|
+ //lists.removeAll(list);
|
|
|
+ //lists.addAll(list);
|
|
|
+ //}
|
|
|
+ return success(treeUtils.getTreeData(lists));
|
|
|
+ }
|
|
|
}
|