|
|
|
@ -1192,7 +1192,8 @@ public class TaskServiceImpl extends ServiceImpl<TaskMapper, TaskEntity> impleme
|
|
|
|
|
if (CollectionUtil.isEmpty(list)||CollectionUtil.isEmpty(undoneIds)){ |
|
|
|
|
voteChartVo.setFinishRate(0.00d); |
|
|
|
|
}else { |
|
|
|
|
BigDecimal divide = new BigDecimal(finishIds.size()).divide(new BigDecimal(list.size()),2, RoundingMode.HALF_UP).setScale(2,RoundingMode.HALF_UP); |
|
|
|
|
BigDecimal divide = new BigDecimal(finishIds.size()).divide(new BigDecimal(list.size()),4, RoundingMode.HALF_UP) |
|
|
|
|
.multiply(new BigDecimal(100)).setScale(2,RoundingMode.HALF_UP); |
|
|
|
|
voteChartVo.setFinishRate(divide.doubleValue()); |
|
|
|
|
} |
|
|
|
|
return voteChartVo; |
|
|
|
|