伊利项目 新增方法根据报告生成器的任务ID查询对应的文件存储路径

This commit is contained in:
qinoy 2022-07-12 09:55:32 +08:00
parent ec140b2efd
commit b0fbe89df9
2 changed files with 24 additions and 0 deletions

View File

@ -4190,4 +4190,28 @@ public class PALRepositoryQueryAPIManager {
} }
/*************************************流程附件 end****************************************/ /*************************************流程附件 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;
}
} }