diff --git a/com.actionsoft.apps.coe.pal/lib/com.actionsoft.apps.coe.pal.jar b/com.actionsoft.apps.coe.pal/lib/com.actionsoft.apps.coe.pal.jar index a66d61dd..64c0eae7 100644 Binary files a/com.actionsoft.apps.coe.pal/lib/com.actionsoft.apps.coe.pal.jar and b/com.actionsoft.apps.coe.pal/lib/com.actionsoft.apps.coe.pal.jar differ 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 862a6b61..5bbb188d 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 @@ -4190,4 +4190,28 @@ public class PALRepositoryQueryAPIManager { } /*************************************流程附件 end****************************************/ + /** + * 根据报告生成器的任务ID查询对应的文件存储路径 + * @param uc + * @param taskId 表APP_ACT_COE_PAL_OUTPUT_TASK的ID + * @return + */ + public String queryReportFilePath(UserContext uc,String taskId){ + String dirPath = ""; + if (UtilString.isEmpty(taskId)) return dirPath; + OutputTask taskDao = new OutputTask(); + OutputTaskModel taskModel = taskDao.getTaskReportById(taskId); + if (taskDao != null){ + String profileId = taskModel.getProfileId(); + OutputAppProfile profile = OutputAppManager.getProfile(profileId); + if (profile != null) { + String appId = profile.getAppContext().getId(); + DCPluginProfile dcProfile = DCProfileManager.getDCProfile(appId, OutputConst.EXT_APP_DC_OUTPUT); + DCContext dcContext = new DCContext(uc, dcProfile, appId, taskModel.getWsId(), taskModel.getId()); + dirPath = dcContext.getPath(); + } + } + return dirPath; + } + }