|
@@ -1,5 +1,6 @@
|
|
|
package com.doc.biz.controller;
|
|
|
|
|
|
+import com.alibaba.fastjson2.JSON;
|
|
|
import com.doc.biz.domain.*;
|
|
|
import com.doc.biz.service.*;
|
|
|
import com.doc.biz.vo.MatchVO;
|
|
@@ -20,7 +21,9 @@ import org.springframework.web.bind.annotation.*;
|
|
|
import javax.annotation.Resource;
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
import java.util.ArrayList;
|
|
|
+import java.util.HashMap;
|
|
|
import java.util.List;
|
|
|
+import java.util.Map;
|
|
|
|
|
|
/**
|
|
|
* 文档目录管理Controller
|
|
@@ -137,6 +140,8 @@ public class DocDirController extends BaseController {
|
|
|
*/
|
|
|
private TreeVO getChildren(DocDir dir, String st) {
|
|
|
TreeVO vo = new TreeVO();
|
|
|
+
|
|
|
+
|
|
|
vo.setId(dir.getDirId());
|
|
|
vo.setLabel(dir.getDirName());
|
|
|
|
|
@@ -165,6 +170,15 @@ public class DocDirController extends BaseController {
|
|
|
children.add(childVO);
|
|
|
}
|
|
|
});
|
|
|
+ } else {
|
|
|
+ //如果是目录树,则需要返回文件数量 目录加密等级相关信息
|
|
|
+ Map<String, Object> remark = new HashMap<>();
|
|
|
+ remark.put("isEncrypt", dir.getIsEncrypt());
|
|
|
+ remark.put("encryptLevel", dir.getEncryptLevel());
|
|
|
+ remark.put("dirType", dir.getDirType());
|
|
|
+ Long fileNum = docInfoService.selectCountList(dir.getDirId());
|
|
|
+ remark.put("fileNum", fileNum);
|
|
|
+ vo.setRemark(JSON.toJSONString(remark));
|
|
|
}
|
|
|
|
|
|
|