数据存储查询
This commit is contained in:
@@ -1011,6 +1011,7 @@ package com.sdm.flowable.delegate.handler;
|
||||
|
||||
import com.alibaba.fastjson2.JSONObject;
|
||||
import com.sdm.common.common.SdmResponse;
|
||||
import com.sdm.common.common.ThreadLocalContext;
|
||||
import com.sdm.common.entity.flowable.executeConfig.ExportWordScriptExecuteConfig;
|
||||
import com.sdm.common.entity.req.data.GetFileBaseInfoReq;
|
||||
import com.sdm.common.entity.req.data.UploadFilesReq;
|
||||
@@ -1070,8 +1071,14 @@ public class ExportWordScriptHandler implements ExecutionHandler<Map<String, Obj
|
||||
|
||||
// 获取当前流程实例参数
|
||||
String runId = (String) execution.getVariable("runId");
|
||||
Long userId = (Long) execution.getVariable("userId");
|
||||
String userName = (String) execution.getVariable("userName");
|
||||
Long tenantId = (Long) execution.getVariable("tenantId");
|
||||
ThreadLocalContext.setUserId(userId);
|
||||
ThreadLocalContext.setUserName(userName);
|
||||
ThreadLocalContext.setTenantId(tenantId);
|
||||
String processDefinitionId = execution.getProcessDefinitionId();
|
||||
log.info("ExportWordScriptHandler 开始执行 runId:{},processDefinitionId:{}, beforeNodeId:{}, currentNodeId:{},fileRegularStr:{}", runId,processDefinitionId, beforeNodeId, currentNodeId,fileRegularStr);
|
||||
log.info("ExportWordScriptHandler 开始执行 runId:{},userId:{},userName:{},tenantId:{},processDefinitionId:{}, beforeNodeId:{}, currentNodeId:{},fileRegularStr:{}", runId,userId,userName,tenantId,processDefinitionId, beforeNodeId, currentNodeId,fileRegularStr);
|
||||
|
||||
ProjecInfoReq projecInfoReq = buildprojectInfoReq(params);
|
||||
log.info("ExportWordScriptHandler的请求参数 projectInfoReq:{}", projecInfoReq);
|
||||
@@ -1196,7 +1203,11 @@ public class ExportWordScriptHandler implements ExecutionHandler<Map<String, Obj
|
||||
log.info("上传文件参数:{}", req);
|
||||
// 调用上传文件的方法
|
||||
// 注意:这里应该处理返回值
|
||||
dataFeignClient.uploadFiles(req);
|
||||
SdmResponse sdmResponse = dataFeignClient.uploadFiles(req);
|
||||
if (!sdmResponse.isSuccess()) {
|
||||
log.error("上传文件失败: {}", sdmResponse.getMessage());
|
||||
throw new RuntimeException("上传文件失败:");
|
||||
}
|
||||
log.info("结果文件已上传到MinIO: {}", resultFilePath);
|
||||
} catch (Exception e) {
|
||||
log.error("上传结果文件到MinIO失败: {}", resultFilePath, e);
|
||||
|
||||
Reference in New Issue
Block a user