|
@@ -2049,6 +2049,11 @@ public class VipGroupServiceImpl extends BaseServiceImpl<Long, VipGroup> impleme
|
|
|
Map<BigDecimal, Long> collect = coursePrices.stream().collect(Collectors.groupingBy(Function.identity(), Collectors.counting()));
|
|
|
studentRecoverInfoDto.setGiveCourseTimes(Objects.isNull(collect.get(new BigDecimal("0.00")))?0:collect.get(new BigDecimal("0.00")).intValue());
|
|
|
studentRecoverInfoDto.setTotalCourseTimes(coursePrices.size()-studentRecoverInfoDto.getGiveCourseTimes());
|
|
|
+
|
|
|
+ if(courseInfo.containsKey("days")){
|
|
|
+ int surplusDays = Integer.valueOf(courseInfo.get("days").toString());
|
|
|
+ studentRecoverInfoDto.setExpireDate(LocalDate.now().plusDays(surplusDays));
|
|
|
+ }
|
|
|
return studentRecoverInfoDto;
|
|
|
}
|
|
|
|