Commit cb5d8380 authored by yanzg's avatar yanzg

修复等待时间

parent 29bb39f9
...@@ -58,25 +58,6 @@ public class CollectionString { ...@@ -58,25 +58,6 @@ public class CollectionString {
return sbResult.toString(); return sbResult.toString();
} }
/**
* 删除为0的长度,并将列名长度写入
*
* @param mapFieldCount
*/
private static void initColumnNameLength(Map<String, Integer> mapFieldCount) {
// 添加到另外一个集合,防止遍历列名通知执行删除时出错
List<String> keys = new ArrayList<>(mapFieldCount.keySet());
keys.forEach(key -> {
int len = mapFieldCount.get(key);
if (len == 0) {
mapFieldCount.remove(key);
} else {
int maxLen = Math.max(len, length(key));
mapFieldCount.put(key, maxLen);
}
});
}
/** /**
* 获取值字段的长度 * 获取值字段的长度
* *
...@@ -99,6 +80,25 @@ public class CollectionString { ...@@ -99,6 +80,25 @@ public class CollectionString {
return mapFieldCount; return mapFieldCount;
} }
/**
* 删除为0的长度,并将列名长度写入
*
* @param mapFieldCount
*/
private static void initColumnNameLength(Map<String, Integer> mapFieldCount) {
// 添加到另外一个集合,防止遍历列名通知执行删除时出错
List<String> keys = new ArrayList<>(mapFieldCount.keySet());
keys.forEach(key -> {
int len = mapFieldCount.get(key);
if (len == 0) {
mapFieldCount.remove(key);
} else {
int maxLen = Math.max(len, length(key));
mapFieldCount.put(key, maxLen);
}
});
}
/** /**
* 添加空行 * 添加空行
* *
......
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