Merge pull request #3474 from dataease/pr@dev@dataset

perf(数据集): 增强解析csv文件时代码稳定性
This commit is contained in:
xuwei-fit2cloud
2022-10-27 11:15:25 +08:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -118,7 +118,7 @@
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-text</artifactId>
<version>1.8</version>
<version>[1.10.0,)</version>
</dependency>
<dependency>
<groupId>commons-codec</groupId>

View File

@@ -2382,7 +2382,7 @@ public class DataSetTableService {
if (CollectionUtils.isNotEmpty(data)) {
jsonArray = data.stream().map(ele -> {
Map<String, Object> map = new HashMap<>();
for (int i = 0; i < ele.size(); i++) {
for (int i = 0; i < fieldArray.length; i++) {
map.put(fieldArray[i], ele.get(i));
}
return map;