|
|
@ -285,8 +285,6 @@ public class IndexServiceImpl implements IndexService { |
|
|
|
NumberFormat nf = NumberFormat.getPercentInstance(); |
|
|
|
nf.setMaximumFractionDigits(1); |
|
|
|
|
|
|
|
BigDecimal num = new BigDecimal(resultDTO.getTotal()).setScale(1, BigDecimal.ROUND_HALF_UP).stripTrailingZeros(); |
|
|
|
resultDTO.setTotalScore(num); |
|
|
|
BigDecimal num1 = new BigDecimal(resultDTO.getParty()).setScale(1, BigDecimal.ROUND_HALF_UP).stripTrailingZeros(); |
|
|
|
resultDTO.setPartyDevAbility(num1); |
|
|
|
resultDTO.setPartyDevAbilityWeight(nf.format(Double.parseDouble(resultDTO.getPartyDevAbilityWeight()))); |
|
|
@ -296,6 +294,9 @@ public class IndexServiceImpl implements IndexService { |
|
|
|
BigDecimal num3 = new BigDecimal(resultDTO.getService()).setScale(1, BigDecimal.ROUND_HALF_UP).stripTrailingZeros(); |
|
|
|
resultDTO.setServiceAbility(num3); |
|
|
|
resultDTO.setServiceAbilityWeight(nf.format(Double.parseDouble(resultDTO.getServiceAbilityWeight()))); |
|
|
|
Double db = Double.parseDouble(resultDTO.getParty())+Double.parseDouble(resultDTO.getGovern())+Double.parseDouble(resultDTO.getService()); |
|
|
|
BigDecimal num = new BigDecimal(db.toString()).setScale(1, BigDecimal.ROUND_HALF_UP).stripTrailingZeros(); |
|
|
|
resultDTO.setTotalScore(num); |
|
|
|
|
|
|
|
return resultDTO; |
|
|
|
} |
|
|
|