forked from github/dataease
perf(数据集): 增强解析csv文件时代码稳定性
This commit is contained in:
parent
408dccb1c7
commit
e77bcd7669
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user