Commit 190c48e6 by zhangkb

修改计算提升率公式

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