Commit ac25268e authored by yanzg's avatar yanzg

修复等待时间

parent cb5d8380
...@@ -69,13 +69,13 @@ public class CollectionString { ...@@ -69,13 +69,13 @@ public class CollectionString {
// 每个字段的长度 // 每个字段的长度
Map<String, Integer> mapFieldCount = new LinkedHashMap<>(15); Map<String, Integer> mapFieldCount = new LinkedHashMap<>(15);
// 每个值的长度 // 每个值的长度
rowList.forEach(k -> ObjectEach.each(k, (name, value, field) -> { rowList.forEach(row -> ObjectEach.each(row, (rowFieldName, rowFieldValue, rowFieldInfo) -> {
// 获取字符串 // 获取字符串
String val = StringHelper.getFirst(StringHelper.toString(value)); String val = StringHelper.getFirst(StringHelper.toString(rowFieldValue));
int len = length(val); int len = length(val);
Integer hisLen = mapFieldCount.getOrDefault(name, len); Integer hisLen = mapFieldCount.getOrDefault(rowFieldName, len);
int maxLen = Math.max(len, hisLen); int maxLen = Math.max(len, hisLen);
mapFieldCount.put(name, maxLen); mapFieldCount.put(rowFieldName, maxLen);
})); }));
return mapFieldCount; return mapFieldCount;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment