|
@@ -369,6 +369,7 @@ public class StudentOrderController extends BaseController {
|
|
|
List<PracticeGroupsDto> organPracticeGroups = courseScheduleEvaluateDao.getOrganPracticeGroups();
|
|
|
List<PracticeGroupsDto> practiceGroupsFrees = courseScheduleEvaluateDao.getPracticeGroupsFree();
|
|
|
List<PracticeGroupsDto> practiceGroupsBuys = courseScheduleEvaluateDao.getPracticeGroupsBuy();
|
|
|
+ List<PracticeGroupsDto> practiceGroupsRenews = courseScheduleEvaluateDao.getPracticeGroupsRenew();
|
|
|
|
|
|
List<PracticeGroupsDto> practiceGroups = new ArrayList<>();
|
|
|
for (Organization organ : organs) {
|
|
@@ -389,6 +390,13 @@ public class StudentOrderController extends BaseController {
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
+ //续费人数
|
|
|
+ for (PracticeGroupsDto practiceGroupsRenew : practiceGroupsRenews) {
|
|
|
+ if (organ.getId().equals(practiceGroupsRenew.getOrganId())) {
|
|
|
+ practiceGroupsDto.setRenewNums(practiceGroupsRenew.getRenewNums());
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
//已完成人数
|
|
|
for (PracticeGroupsDto organPracticeGroup : organPracticeGroups) {
|
|
|
if (organ.getId().equals(organPracticeGroup.getOrganId()) && organPracticeGroup.getBuyNums() >= organPracticeGroup.getTotalNums()) {
|
|
@@ -422,6 +430,7 @@ public class StudentOrderController extends BaseController {
|
|
|
BigDecimal totalMoney = BigDecimal.ZERO;
|
|
|
Integer totalNum = 0;
|
|
|
Integer buyNum = 0;
|
|
|
+ Integer renewNum = 0;
|
|
|
Integer overNum = 0;
|
|
|
Integer reportNum = 0;
|
|
|
|
|
@@ -437,6 +446,7 @@ public class StudentOrderController extends BaseController {
|
|
|
overNum += next.getOverNums();
|
|
|
buyNum += next.getBuyNums();
|
|
|
reportNum += next.getReportNums();
|
|
|
+ renewNum += next.getRenewNums();
|
|
|
}
|
|
|
practiceGroups = practiceGroups.stream().sorted(Comparator.comparingDouble(PracticeGroupsDto::getBuyScale).reversed()).collect(Collectors.toList());
|
|
|
|
|
@@ -445,6 +455,7 @@ public class StudentOrderController extends BaseController {
|
|
|
practiceGroupStatisDto.setTotalMoney(totalMoney);
|
|
|
practiceGroupStatisDto.setTotalNum(totalNum);
|
|
|
practiceGroupStatisDto.setBuyNum(buyNum);
|
|
|
+ practiceGroupStatisDto.setRenewNum(renewNum);
|
|
|
practiceGroupStatisDto.setOverNum(overNum);
|
|
|
practiceGroupStatisDto.setReportNum(reportNum);
|
|
|
|