Commit 190c48e6 by zhangkb

修改计算提升率公式

parent 361d47b2
...@@ -247,7 +247,7 @@ public class IndicatorsReportService { ...@@ -247,7 +247,7 @@ public class IndicatorsReportService {
//type:0 从小到大 1从大到小 //type:0 从小到大 1从大到小
private List<IndicatorsReportThree> fillImproveHeadAndAfterCount(Map<String,Integer> resultRank private List<IndicatorsReportThree> fillImproveHeadAndAfterCount(Map<String,Integer> resultRank
,List<IndicatorsReportThree> dataList,Integer type){ ,List<IndicatorsReportThree> dataList,Integer type){
resultRank = CalculateUtils.sortMapByValue(resultRank,type);//按照value从小到大排序 resultRank = CalculateUtils.sortMapByValue(resultRank,type);
int limitNum = 0; int limitNum = 0;
for(IndicatorsReportThree indReportData : dataList) { for(IndicatorsReportThree indReportData : dataList) {
//判断是否存在 //判断是否存在
...@@ -261,8 +261,8 @@ public class IndicatorsReportService { ...@@ -261,8 +261,8 @@ public class IndicatorsReportService {
if(indReportData.getEffectiveIndCount()!=null && if(indReportData.getEffectiveIndCount()!=null &&
indReportData.getIndImproveCount()!=null) { indReportData.getIndImproveCount()!=null) {
String improveRate = String.format("%.4f", String improveRate = String.format("%.4f",
new BigDecimal(indReportData.getIndImproveCount()/ new BigDecimal(indReportData.getIndImproveCount()*1.0/
indReportData.getEffectiveIndCount()*100.0)); indReportData.getEffectiveIndCount()*100));
indReportData.setIndImproveRate(improveRate); indReportData.setIndImproveRate(improveRate);
} }
for(Map.Entry<String, Integer> map : resultRank.entrySet()) { for(Map.Entry<String, Integer> map : resultRank.entrySet()) {
......
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