报告生成器中发布部门筛选优化

This commit is contained in:
zhaol 2024-11-15 09:16:46 +08:00
parent 02623c7ca3
commit b32a19a115
3 changed files with 12 additions and 1 deletions

View File

@ -435,6 +435,18 @@ public class OutPutReportWeb extends ActionWeb {
return jsonArr.toString();
}
public String PALFileJsonDataRootTreeDataByDepartment(String methodType, String wsid, String versionType, String teamId,String departId) {
JSONArray jsonArr = null;
//if (teamId == null || "".equals(teamId)) {
if (teamId == null) {
jsonArr = PALRepositoryQueryAPIManager.getInstance().getPalRepositoryTreeDataByDeptId(_uc, wsid, methodType, versionType,departId);
} else {
jsonArr = PALRepositoryQueryAPIManager.getInstance().getPermPalRepositoryTreeDataByMethodsByDeptId(_uc, wsid, teamId, versionType, methodType,departId);
}
return jsonArr.toString();
}
/**
* 报告数据保存
*

View File

@ -244,7 +244,6 @@ public class OutputWordUtil {
// 设置模本装置方法和路径
try {
UtilFile temps = new UtilFile(tempPath);
System.out.println(">>>>>>>tempPath = " + tempPath);
configuration.setDirectoryForTemplateLoading(temps);
} catch (IOException e2) {
e2.printStackTrace();