修复获取最小值出错的问题

This commit is contained in:
彭宇琦 2020-05-14 14:25:37 +08:00
parent 9f8135656c
commit b8f2ae474c
1 changed files with 4 additions and 10 deletions

View File

@ -388,21 +388,15 @@ public class DataListElement extends AbstractElement {
//根据参数判断获取的列是否为最大值所在的列并对极值做进一步判断
if (maxColumnSize < size) {
if (maxColumnSize < size) {
maxColumnNameList.clear();
maxColumnSize = size;
}
maxColumnNameList.clear();
maxColumnSize = size;
maxColumnNameList.add(key.name);
} else {
//对比当前存储的最小值与列的元素个数其操作与求取最大值相反
if (minColumnSize < size) {
return;
}
if (minColumnSize > size) {
minColumnNameList.clear();
minColumnSize = size;
} else {
return;
}
minColumnNameList.add(key.name);
}