diff --git a/com.actionsoft.apps.coe.pal/src/com/actionsoft/apps/coe/pal/pal/repository/PALRepositoryQueryAPIManager.java b/com.actionsoft.apps.coe.pal/src/com/actionsoft/apps/coe/pal/pal/repository/PALRepositoryQueryAPIManager.java index 27337f30..889299de 100755 --- a/com.actionsoft.apps.coe.pal/src/com/actionsoft/apps/coe/pal/pal/repository/PALRepositoryQueryAPIManager.java +++ b/com.actionsoft.apps.coe.pal/src/com/actionsoft/apps/coe/pal/pal/repository/PALRepositoryQueryAPIManager.java @@ -3234,12 +3234,26 @@ public class PALRepositoryQueryAPIManager { if (docFile == null) { return ResponseObject.newErrResponse("没有找到文件").toString(); } - String sourceAppId = "com.actionsoft.apps.coe.pal.output.pr"; - String filename = docFile.getName(); - DCContext sourceDc = new DCContext(_uc, DCProfileManager.getDCProfile(sourceAppId, "output"), sourceAppId, model.getWsId(), taskId, filename); - - String downUrl=SDK.getConfAPI().getPortalUrl() + "/r/" + sourceDc.getDownloadURL().replace("./", ""); - result.put("url",downUrl); + + String plId = DBSql.getString("SELECT PALREPOSITORYID FROM app_act_coe_pal_publish_list WHERE TASKID ='"+taskId+"'"); + if(UtilString.isNotEmpty(plId)) { + PALRepositoryModel plmodel = PALRepositoryCache.getCache().get(plId); + if(plmodel!=null) { + String sourceAppId = "com.actionsoft.apps.coe.pal.output.pr"; + String methodId = plmodel.getMethodId(); + if(methodId.contains("control")) { + sourceAppId = "com.awspaas.user.apps.coe.pal.output.zd"; + }else if(methodId.contains("data")) { + sourceAppId = "com.awspaas.user.apps.coe.pal.output.bd"; + } + String filename = docFile.getName(); + DCContext sourceDc = new DCContext(_uc, DCProfileManager.getDCProfile(sourceAppId, "output"), sourceAppId, model.getWsId(), taskId, filename); + String downUrl=SDK.getConfAPI().getPortalUrl() + "/r/" + sourceDc.getDownloadURL().replace("./", ""); + result.put("url",downUrl); + + } + } + } }else{ result = ResponseObject.newErrResponse("没有可预览文件"); diff --git a/com.actionsoft.apps.coe.pal/src/com/actionsoft/apps/coe/pal/pal/repository/job/queryPost.java b/com.actionsoft.apps.coe.pal/src/com/actionsoft/apps/coe/pal/pal/repository/job/queryPost.java index 3275f063..a1c23be6 100644 --- a/com.actionsoft.apps.coe.pal/src/com/actionsoft/apps/coe/pal/pal/repository/job/queryPost.java +++ b/com.actionsoft.apps.coe.pal/src/com/actionsoft/apps/coe/pal/pal/repository/job/queryPost.java @@ -1,26 +1,14 @@ package com.actionsoft.apps.coe.pal.pal.repository.job; -import com.actionsoft.apps.coe.pal.datamigration.util.ShapeUtil; -import com.actionsoft.apps.coe.pal.pal.method.cache.PALMethodCache; -import com.actionsoft.apps.coe.pal.pal.method.model.PALMethodAttributeModel; -import com.actionsoft.apps.coe.pal.pal.method.model.PALMethodModel; -import com.actionsoft.apps.coe.pal.pal.repository.cache.PALRepositoryShapeAttributeCache; -import com.actionsoft.apps.coe.pal.pal.repository.designer.util.CoeDesignerUtil; -import com.actionsoft.apps.coe.pal.pal.repository.model.PALRepositoryShapeAttributeModel; -import com.actionsoft.bpms.commons.database.RowMap; -import com.actionsoft.bpms.schedule.IJob; -import com.actionsoft.bpms.util.DBSql; -import com.actionsoft.bpms.util.UtilString; -import com.actionsoft.sdk.local.SDK; -import com.alibaba.fastjson.JSONArray; -import com.alibaba.fastjson.JSONObject; +import java.util.List; + import org.quartz.JobExecutionContext; import org.quartz.JobExecutionException; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; +import com.actionsoft.bpms.commons.database.RowMap; +import com.actionsoft.bpms.schedule.IJob; +import com.actionsoft.bpms.util.DBSql; +import com.actionsoft.sdk.local.SDK; public class queryPost implements IJob { diff --git a/com.actionsoft.apps.coe.pal/web/com.actionsoft.apps.coe.pal/img/portal_banner.jpg b/com.actionsoft.apps.coe.pal/web/com.actionsoft.apps.coe.pal/img/portal_banner.jpg index 45d6a586..2ef59487 100755 Binary files a/com.actionsoft.apps.coe.pal/web/com.actionsoft.apps.coe.pal/img/portal_banner.jpg and b/com.actionsoft.apps.coe.pal/web/com.actionsoft.apps.coe.pal/img/portal_banner.jpg differ