制度手册相关/支持文件搜索优化
This commit is contained in:
parent
ccae909979
commit
463766de7c
Binary file not shown.
@ -1144,13 +1144,13 @@ public class OutputWordUtil {
|
||||
for(PALRepositoryModel oneModel:models){
|
||||
if(oneModel.isUse()==true){
|
||||
name=oneModel.getName();
|
||||
JSONObject tmp = new JSONObject();
|
||||
tmp.put("name", name);
|
||||
tmp.put("desc", index);
|
||||
related_support_files.add(tmp);
|
||||
}
|
||||
}
|
||||
}
|
||||
JSONObject tmp = new JSONObject();
|
||||
tmp.put("name", name);
|
||||
tmp.put("desc", index);
|
||||
related_support_files.add(tmp);
|
||||
}
|
||||
|
||||
|
||||
@ -1364,7 +1364,7 @@ public class OutputWordUtil {
|
||||
}
|
||||
|
||||
try {
|
||||
System.out.println("生成附件路径是=================="+outFile.getPath());
|
||||
System.out.println("Filed=================="+repositoryModel.getId());
|
||||
doc.saveToFile(outFile.getPath(), FileFormat.Docx_2013);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
|
||||
@ -127,11 +127,14 @@ public class RepositoryTreeUtil {
|
||||
for(int i=0;i<relatedRowMap.size();i++){
|
||||
JSONObject jb = new JSONObject();
|
||||
PALRepositoryModel pModel=PALRepositoryCache.getCache().get(relatedRowMap.get(i).getString("RELATIONFILEID"));
|
||||
String sessionId = new SSOUtil().registerClientSessionNoPassword("admin", LoginConst.DEFAULT_LANG, "localhost", LoginConst.DEVICE_PC);
|
||||
String url=SDK.getConfAPI().getPortalUrl() + "/r/w?uuid="+ pModel.getId()+"&teamId=&cmd=com.actionsoft.apps.coe.pal_pl_repository_designer&sid="+sessionId;
|
||||
jb.put("relatedName",pModel.getName());
|
||||
jb.put("relatedUrl",url);
|
||||
jsonArray1.add(jb.toJSONString());
|
||||
if(pModel!=null){
|
||||
String sessionId = new SSOUtil().registerClientSessionNoPassword("admin", LoginConst.DEFAULT_LANG, "localhost", LoginConst.DEVICE_PC);
|
||||
String url=SDK.getConfAPI().getPortalUrl() + "/r/w?uuid="+ pModel.getId()+"&teamId=&cmd=com.actionsoft.apps.coe.pal_pl_repository_designer&sid="+sessionId;
|
||||
jb.put("relatedName",pModel.getName());
|
||||
jb.put("relatedUrl",url);
|
||||
jsonArray1.add(jb.toJSONString());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@ -284,18 +287,20 @@ public class RepositoryTreeUtil {
|
||||
|
||||
//相关/支持文件
|
||||
JSONArray jsonArray1=new JSONArray();
|
||||
String relatedName="";
|
||||
List<RowMap> relatedRowMap=DBSql.getMaps("SELECT RELATIONFILEID FROM APP_ACT_COE_PAL_SHAPE_RLAT where FILEID='"+palModel.getId()+"' and ATTRID='related_support_files'");
|
||||
Map map=new HashMap();
|
||||
if(relatedRowMap.size()>0){
|
||||
for(int i=0;i<relatedRowMap.size();i++){
|
||||
JSONObject jb = new JSONObject();
|
||||
PALRepositoryModel pModel=PALRepositoryCache.getCache().get(relatedRowMap.get(i).getString("RELATIONFILEID"));
|
||||
String sessionId = new SSOUtil().registerClientSessionNoPassword("admin", LoginConst.DEFAULT_LANG, "localhost", LoginConst.DEVICE_PC);
|
||||
String url=SDK.getConfAPI().getPortalUrl() + "/r/w?uuid="+ pModel.getId()+"&teamId=&cmd=com.actionsoft.apps.coe.pal_pl_repository_designer&sid="+sessionId;
|
||||
jb.put("relatedName",pModel.getName());
|
||||
jb.put("relatedUrl",url);
|
||||
jsonArray1.add(jb.toJSONString());
|
||||
if(pModel!=null){
|
||||
String sessionId = new SSOUtil().registerClientSessionNoPassword("admin", LoginConst.DEFAULT_LANG, "localhost", LoginConst.DEVICE_PC);
|
||||
String url=SDK.getConfAPI().getPortalUrl() + "/r/w?uuid="+ pModel.getId()+"&teamId=&cmd=com.actionsoft.apps.coe.pal_pl_repository_designer&sid="+sessionId;
|
||||
jb.put("relatedName",pModel.getName());
|
||||
jb.put("relatedUrl",url);
|
||||
jsonArray1.add(jb.toJSONString());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user