|
@@ -55,6 +55,7 @@ public class ActivityController extends BaseController {
|
|
|
BigDecimal totalMoney = BigDecimal.ZERO;
|
|
|
Integer totalEstimatedNums = 0;
|
|
|
Integer totalNum = 0;
|
|
|
+ Integer totalTimes = 0;
|
|
|
for (OrderStatisDto order : orders) {
|
|
|
for (OrderStatisDto organNormalStudent : organNormalStudents) {
|
|
|
if (order.getOrganId().equals(organNormalStudent.getOrganId())) {
|
|
@@ -64,6 +65,7 @@ public class ActivityController extends BaseController {
|
|
|
}
|
|
|
totalEstimatedNums += order.getEstimatedNums();
|
|
|
totalNum += order.getNums();
|
|
|
+ totalTimes += order.getTimes();
|
|
|
totalMoney = totalMoney.add(order.getMoney());
|
|
|
if (order.getEstimatedNums() <= 0) {
|
|
|
order.setScale(new BigDecimal(order.getNums()).multiply(new BigDecimal(100)).divide(new BigDecimal(1), 2, BigDecimal.ROUND_HALF_UP));
|
|
@@ -77,6 +79,7 @@ public class ActivityController extends BaseController {
|
|
|
luckStatisDto.setOrderStatisDtoList(orders);
|
|
|
luckStatisDto.setTotalEstimatedNums(totalEstimatedNums);
|
|
|
luckStatisDto.setTotalNum(totalNum);
|
|
|
+ luckStatisDto.setTotalTimes(totalTimes);
|
|
|
luckStatisDto.setTotalMoney(totalMoney);
|
|
|
if (luckStatisDto.getTotalEstimatedNums() <= 0) {
|
|
|
totalEstimatedNums = 1;
|