流程节点运行时设置自动或者手动

支持用户定自定义文件选择
This commit is contained in:
2025-12-25 16:40:53 +08:00
parent 8abd4d2117
commit 9e85144f1e
16 changed files with 384 additions and 13 deletions

View File

@@ -339,8 +339,8 @@ public interface IDataFileService {
/**
* 批量下载指定文件夹到本地目录
* @param downloadDirId
* @param basePath
* @param downloadDirId downloadDirId = /数据输出/ 的dirID
* @param basePath /home/simulation/projectNode/演示项目-2025-12-18/T01/软包电池外观检测机/托盘上料&下料工位/结构/上料小车静力学分析/算例_V1/Hypermesh/数据输出/
* @param fileRegularStr 用于过滤文件的正则表达式
*/
default SdmResponse downloadFolderToLocal(Long downloadDirId, String basePath, String fileRegularStr) throws Exception {return null;}

View File

@@ -2682,7 +2682,7 @@ public class MinioFileIDataFileServiceImpl implements IDataFileService {
}
}
// 构建本地文件路径:basePath + 相对路径
// 构建本地文件路径:localBaseDir + relativePath
Path localFilePath = localBaseDir.resolve(relativePath).normalize();
// 安全校验:防止路径穿越(例如 relativePath 含 ../../