发布流程中相关/支持文件显示

This commit is contained in:
zhaol 2024-10-29 14:58:55 +08:00
parent 5c745160de
commit 7bc0a7b929
2 changed files with 4 additions and 8 deletions

View File

@ -2986,13 +2986,12 @@ public class ProcessPublishWeb extends ActionWeb {
//相关/支持文件数据
JSONArray jsonArray1=new JSONArray();
String relatedName="";
List<RowMap> relatedRowMap=DBSql.getMaps("SELECT RELATIONFILEID FROM APP_ACT_COE_PAL_SHAPE_RLAT where FILEID='"+id+"' and ATTRID='related_support_files'");
if(relatedRowMap.size()>0){
for(int j=0;j<relatedRowMap.size();j++){
JSONObject jb = new JSONObject();
PALRepositoryModel pModel=PALRepositoryCache.getCache().get(relatedRowMap.get(i).getString("RELATIONFILEID"));
String sessionId = new SSOUtil().registerClientSessionNoPassword(pModel.getCreateUser(), LoginConst.DEFAULT_LANG, "localhost", LoginConst.DEVICE_PC);
String sessionId = new SSOUtil().registerClientSessionNoPassword("admin", LoginConst.DEFAULT_LANG, "localhost", LoginConst.DEVICE_PC);
String url=SDK.getConfAPI().getPortalUrl() + "/r/w?uuid="+ id+"&teamId=&cmd=com.actionsoft.apps.coe.pal_pl_repository_designer&sid="+sessionId;
jb.put("relatedName",pModel.getName());
jb.put("relatedUrl",url);
@ -3236,13 +3235,12 @@ public class ProcessPublishWeb extends ActionWeb {
//相关/支持文件数据
JSONArray jsonArray1=new JSONArray();
String relatedName="";
List<RowMap> relatedRowMap=DBSql.getMaps("SELECT RELATIONFILEID FROM APP_ACT_COE_PAL_SHAPE_RLAT where FILEID='"+changeBo.getString("CHANGEDFILENAMENEW")+"' and ATTRID='related_support_files'");
if(relatedRowMap.size()>0){
for(int b=0;b<relatedRowMap.size();b++){
JSONObject jb = new JSONObject();
PALRepositoryModel pModel=PALRepositoryCache.getCache().get(relatedRowMap.get(b).getString("RELATIONFILEID"));
String sessionId = new SSOUtil().registerClientSessionNoPassword(pModel.getCreateUser(), LoginConst.DEFAULT_LANG, "localhost", LoginConst.DEVICE_PC);
String sessionId = new SSOUtil().registerClientSessionNoPassword("admin", LoginConst.DEFAULT_LANG, "localhost", LoginConst.DEVICE_PC);
String url=SDK.getConfAPI().getPortalUrl() + "/r/w?uuid="+ changeBo.getString("CHANGEDFILENAMENEW")+"&teamId=&cmd=com.actionsoft.apps.coe.pal_pl_repository_designer&sid="+sessionId;
jb.put("relatedName",pModel.getName());
jb.put("relatedUrl",url);
@ -3517,13 +3515,12 @@ public class ProcessPublishWeb extends ActionWeb {
//相关/支持文件数据
JSONArray jsonArray1=new JSONArray();
String relatedName="";
List<RowMap> relatedRowMap=DBSql.getMaps("SELECT RELATIONFILEID FROM APP_ACT_COE_PAL_SHAPE_RLAT where FILEID='"+ stopBo.getString("STOPFILEID")+"' and ATTRID='related_support_files'");
if(relatedRowMap.size()>0){
for(int b=0;b<relatedRowMap.size();b++){
JSONObject jb = new JSONObject();
PALRepositoryModel pModel=PALRepositoryCache.getCache().get(relatedRowMap.get(b).getString("RELATIONFILEID"));
String sessionId = new SSOUtil().registerClientSessionNoPassword(pModel.getCreateUser(), LoginConst.DEFAULT_LANG, "localhost", LoginConst.DEVICE_PC);
String sessionId = new SSOUtil().registerClientSessionNoPassword("admin", LoginConst.DEFAULT_LANG, "localhost", LoginConst.DEVICE_PC);
String url=SDK.getConfAPI().getPortalUrl() + "/r/w?uuid="+ stopBo.getString("STOPFILEID")+"&teamId=&cmd=com.actionsoft.apps.coe.pal_pl_repository_designer&sid="+sessionId;
jb.put("relatedName",pModel.getName());
jb.put("relatedUrl",url);
@ -4000,14 +3997,13 @@ public class ProcessPublishWeb extends ActionWeb {
//相关/支持文件
JSONArray jsonArray1=new JSONArray();
String relatedName="";
List<RowMap> relatedRowMap=DBSql.getMaps("SELECT RELATIONFILEID FROM APP_ACT_COE_PAL_SHAPE_RLAT where FILEID='"+model2.getId()+"' and ATTRID='related_support_files'");
Map map=new HashMap();
if(relatedRowMap.size()>0){
for(int j=0;j<relatedRowMap.size();j++){
JSONObject jb = new JSONObject();
PALRepositoryModel pModel=PALRepositoryCache.getCache().get(relatedRowMap.get(j).getString("RELATIONFILEID"));
String sessionId = new SSOUtil().registerClientSessionNoPassword(pModel.getCreateUser(), LoginConst.DEFAULT_LANG, "localhost", LoginConst.DEVICE_PC);
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);