Commit f9b26cf3 by zhangkb

修改同比提升根据增幅计算类型进行计算排名

parent 3680e51f
...@@ -444,9 +444,9 @@ public class IndicatorsReportService { ...@@ -444,9 +444,9 @@ public class IndicatorsReportService {
&& !"Infinite".equals(currentCalData.getValue()) && !"Infinite".equals(currentCalData.getValue())
&& StringUtils.isNotBlank(currentCalData.getValue())) { && StringUtils.isNotBlank(currentCalData.getValue())) {
//同比提升单位指本期与同期值相比要好的单位(考虑指标的正反向) //同比提升单位指本期与同期值相比要好的单位(考虑指标的正反向)
rankMap.put(currentCalData.getCompareObj(), rankMap.put(currentCalData.getCompareObj(),CalculateUtils.calGowth(
String.valueOf(Double.parseDouble(currentCalData.getValue())- currentCalData.getValue(), sameCalData.getValue(),
Double.parseDouble(sameCalData.getValue()))); driveIndDef.getGrowCalType()));
//如果是正向指标 //如果是正向指标
if("0".equals(indRule)) { if("0".equals(indRule)) {
if(Double.parseDouble(currentCalData.getValue())- if(Double.parseDouble(currentCalData.getValue())-
...@@ -538,7 +538,7 @@ public class IndicatorsReportService { ...@@ -538,7 +538,7 @@ public class IndicatorsReportService {
calData.getIndId(), (calData.getDate()-100), calData.getCompareObj()); calData.getIndId(), (calData.getDate()-100), calData.getCompareObj());
if(sameCalData!=null) { if(sameCalData!=null) {
indReportData.setLastSameValue(sameCalData.getValue()); indReportData.setLastSameValue(sameCalData.getValue());
indReportData.setLastSameRank(sameCalData.getRank().toString()); indReportData.setLastSameRank(sameCalData.getRank()==null ? null : sameCalData.getRank().toString());
indReportData.setLastSameScore(sameCalData.getScore()); indReportData.setLastSameScore(sameCalData.getScore());
indReportData.setLastSameImprove(sameCalData.getImproveScore()); indReportData.setLastSameImprove(sameCalData.getImproveScore());
//算同比 //算同比
......
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