伊利项目 新增方法根据报告生成器的任务ID查询对应的文件存储路径
This commit is contained in:
parent
ec140b2efd
commit
b0fbe89df9
Binary file not shown.
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user