|
@ -383,10 +383,6 @@ public class GovernRankDataExtractServiceImpl implements GovernRankDataExtractSe |
|
|
if (dto.getSum() != NumConstant.ZERO) { |
|
|
if (dto.getSum() != NumConstant.ZERO) { |
|
|
BigDecimal sum = new BigDecimal(dto.getSum()); |
|
|
BigDecimal sum = new BigDecimal(dto.getSum()); |
|
|
BigDecimal count = new BigDecimal(dto.getCount()); |
|
|
BigDecimal count = new BigDecimal(dto.getCount()); |
|
|
BigDecimal ratio = count.multiply(hundred).divide(sum, NumConstant.SIX, RoundingMode.HALF_UP); |
|
|
|
|
|
if (ratio.compareTo(hundred) > 0) { |
|
|
|
|
|
ratio = hundred; |
|
|
|
|
|
} |
|
|
|
|
|
entity.setResponseCount(dto.getCount()); |
|
|
entity.setResponseCount(dto.getCount()); |
|
|
entity.setTransferCount(dto.getSum()); |
|
|
entity.setTransferCount(dto.getSum()); |
|
|
BigDecimal ratio = count.multiply(hundred).divide(sum, NumConstant.SIX, RoundingMode.HALF_UP); |
|
|
BigDecimal ratio = count.multiply(hundred).divide(sum, NumConstant.SIX, RoundingMode.HALF_UP); |
|
|