|
|
@ -2830,7 +2830,7 @@ public class ProjectServiceImpl extends BaseServiceImpl<ProjectDao, ProjectEntit |
|
|
|
* 分段规则 |
|
|
|
* 组织内所有网格项目数,网格内最低项目数向下十位取整数,网格内最高项目数向上取整数,获得取值范围, |
|
|
|
* |
|
|
|
* 根据: |
|
|
|
* 根据: 采用这个公式 |
|
|
|
* 最小取值+(最大取值-最小取值)/3 |
|
|
|
* 最小取值+(最大取值-最小取值)*2/3 |
|
|
|
* 获得两个数值,用两个数值确定三个取值范围, |
|
|
@ -2886,14 +2886,11 @@ public class ProjectServiceImpl extends BaseServiceImpl<ProjectDao, ProjectEntit |
|
|
|
Integer max = Collections.max(allCount); |
|
|
|
Integer min = Collections.min(allCount); |
|
|
|
if (orgList.size() == NumConstant.ONE || max.compareTo(min) == NumConstant.ZERO){ |
|
|
|
result.setUnder(orgList.get(NumConstant.ZERO).getCount().toString()); |
|
|
|
result.setUnder(orgList.get(NumConstant.ZERO).getCount()); |
|
|
|
return result; |
|
|
|
} |
|
|
|
Integer minRange = min + ((max - min) / NumConstant.THREE); |
|
|
|
Integer maxRange = min + ((max - min) * NumConstant.TWO / NumConstant.THREE); |
|
|
|
result.setUnder(minRange.toString().concat("以下")); |
|
|
|
result.setMiddle(minRange.toString().concat("-").concat(maxRange.toString())); |
|
|
|
result.setAbove(maxRange.toString().concat("以上")); |
|
|
|
result.setUnder(min + ((max - min) / NumConstant.THREE)); |
|
|
|
result.setAbove(min + ((max - min) * NumConstant.TWO / NumConstant.THREE)); |
|
|
|
return result; |
|
|
|
} |
|
|
|
|
|
|
|