|
@@ -54,6 +54,7 @@ import java.util.*;
|
|
|
import java.util.concurrent.atomic.AtomicBoolean;
|
|
|
import java.util.concurrent.atomic.AtomicInteger;
|
|
|
import java.util.concurrent.atomic.AtomicReference;
|
|
|
+import java.util.stream.Collectors;
|
|
|
|
|
|
import static com.taais.biz.domain.table.DataTableDef.DATA;
|
|
|
|
|
@@ -495,6 +496,12 @@ public class DataServiceImpl extends BaseServiceImpl<DataMapper, Data> implement
|
|
|
String formattedDate = currentDate.format(formatter);
|
|
|
filePath = filePath + File.separator + formattedDate;
|
|
|
String finalFilePath = filePath;
|
|
|
+ Map<String, String> otherParams = new HashMap<>();
|
|
|
+ for (Map<String, String> param : dataAmplifyDto.getOtherParams()) {
|
|
|
+ otherParams.put(param.get("agName"), param.get("defaultValue"));
|
|
|
+ }
|
|
|
+ Map<String, String> param = dataAmplifyDto.getOtherParams()
|
|
|
+ .stream().collect(Collectors.toMap(item -> item.get("agName"), item -> item.get("defaultValue")));
|
|
|
dataListInfo.forEach(dataInfo -> {
|
|
|
try {
|
|
|
boolean success = true;
|
|
@@ -513,8 +520,8 @@ public class DataServiceImpl extends BaseServiceImpl<DataMapper, Data> implement
|
|
|
log.info("创建文件目录: {}", desc.mkdirs());
|
|
|
}
|
|
|
bodyJson.put("outputImagePath", outputImagePath);
|
|
|
- bodyJson.put("otherParams", dataAmplifyDto.getOtherParams().get(0));
|
|
|
- String logPath = profile + "/task/" + dataAmplifyDto.getId() + "_log.log";
|
|
|
+ bodyJson.put("otherParams", otherParams);
|
|
|
+ String logPath = profile + "/task/log/" + dataAmplifyDto.getId() + "_log.log";
|
|
|
System.out.println("logPath===>" + logPath);
|
|
|
bodyJson.put("logPath", logPath);
|
|
|
//实际请求接口,接口未提供,暂且注释
|