|
|
@ -1166,8 +1166,8 @@ public class TaskServiceImpl extends BaseServiceImpl<TaskMapper, TaskEntity> imp |
|
|
|
if (CollectionUtil.isEmpty(list)||CollectionUtil.isEmpty(undoneIds)){ |
|
|
|
if (CollectionUtil.isEmpty(list)||CollectionUtil.isEmpty(undoneIds)){ |
|
|
|
voteChartVo.setFinishRate(0.00d); |
|
|
|
voteChartVo.setFinishRate(0.00d); |
|
|
|
}else { |
|
|
|
}else { |
|
|
|
BigDecimal divide = new BigDecimal(list.size()).divide(new BigDecimal(list.size()),2,BigDecimal.ROUND_UP); |
|
|
|
BigDecimal divide = new BigDecimal(finishIds.size()).divide(new BigDecimal(list.size()),2,BigDecimal.ROUND_UP); |
|
|
|
voteChartVo.setFinishRate( divide.doubleValue()); |
|
|
|
voteChartVo.setFinishRate(divide.doubleValue()); |
|
|
|
} |
|
|
|
} |
|
|
|
return voteChartVo; |
|
|
|
return voteChartVo; |
|
|
|
} |
|
|
|
} |
|
|
|