|
@ -49,23 +49,23 @@ public class PartyMemberLeadServiceImpl implements PartyMemberLeadService { |
|
|
if (null == fineExampleResultDTO){ |
|
|
if (null == fineExampleResultDTO){ |
|
|
return new FineExampleResultDTO(); |
|
|
return new FineExampleResultDTO(); |
|
|
} |
|
|
} |
|
|
fineExampleResultDTO.setIssueRatio(this.getRatio(fineExampleResultDTO.getIssueRatioA()).concat("%")); |
|
|
fineExampleResultDTO.setIssueRatio(this.getRatio(fineExampleResultDTO.getIssueRatioA())); |
|
|
fineExampleResultDTO.setPublishIssueRatio(this.getRatio(fineExampleResultDTO.getPublishIssueRatioA()).concat("%")); |
|
|
fineExampleResultDTO.setPublishIssueRatio(this.getRatio(fineExampleResultDTO.getPublishIssueRatioA())); |
|
|
fineExampleResultDTO.setResolvedProjectRatio(this.getRatio(fineExampleResultDTO.getResolvedProjectRatioA()).concat("%")); |
|
|
fineExampleResultDTO.setResolvedProjectRatio(this.getRatio(fineExampleResultDTO.getResolvedProjectRatioA())); |
|
|
fineExampleResultDTO.setTopicRatio(this.getRatio(fineExampleResultDTO.getTopicRatioA()).concat("%")); |
|
|
fineExampleResultDTO.setTopicRatio(this.getRatio(fineExampleResultDTO.getTopicRatioA())); |
|
|
fineExampleResultDTO.setShiftProjectRatio(this.getRatio(fineExampleResultDTO.getShiftProjectRatioA()).concat("%")); |
|
|
fineExampleResultDTO.setShiftProjectRatio(this.getRatio(fineExampleResultDTO.getShiftProjectRatioA())); |
|
|
return fineExampleResultDTO; |
|
|
return fineExampleResultDTO; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* @Description |
|
|
* @Description 小数转换百分比 |
|
|
* @param d |
|
|
* @param d |
|
|
* @author zxc |
|
|
* @author zxc |
|
|
* @date 2020/8/20 6:06 下午 |
|
|
* @date 2020/8/20 6:06 下午 |
|
|
*/ |
|
|
*/ |
|
|
public String getRatio(Double d){ |
|
|
public String getRatio(Double d){ |
|
|
BigDecimal bigDecimal = new BigDecimal(d * NumConstant.ONE_HUNDRED); |
|
|
BigDecimal bigDecimal = new BigDecimal(d * NumConstant.ONE_HUNDRED); |
|
|
return bigDecimal.setScale(NumConstant.TWO, BigDecimal.ROUND_HALF_UP).toPlainString(); |
|
|
return bigDecimal.setScale(NumConstant.TWO, BigDecimal.ROUND_HALF_UP).toPlainString().concat("%"); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|