perf(数据集): 增强解析csv文件时代码稳定性

This commit is contained in:
taojinlong 2022-10-27 10:47:55 +08:00
parent 408dccb1c7
commit e77bcd7669

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;