|
@@ -1116,11 +1116,13 @@ public class StudentRegistrationServiceImpl extends BaseServiceImpl<Long, Studen
|
|
|
List<Long> orderIdList = new ArrayList<>();
|
|
|
orderIdList.add(studentPaymentOrder.getId());
|
|
|
List<StudentPaymentOrderDetail> allDetails = studentPaymentOrderDetailDao.getOrderDetailByOrderId(orderIdList);
|
|
|
- BigDecimal courseFee = allDetails.stream().filter(o -> !(o.getType()==MUSICAL))
|
|
|
- .filter(o -> !(o.getType() == ACCESSORIES))
|
|
|
- .filter(o -> !(o.getType() == MAINTENANCE))
|
|
|
- .filter(o -> !(o.getType() == CLOUD_TEACHER))
|
|
|
- .filter(o -> !(o.getType() == CLOUD_TEACHER_PLUS))
|
|
|
+ BigDecimal courseFee = allDetails.stream().filter(o -> !(o.getType() == MUSICAL)
|
|
|
+ && !(o.getType() == VIP)
|
|
|
+ && !(o.getType() == PRACTICE)
|
|
|
+ && !(o.getType() == MAINTENANCE)
|
|
|
+ && !(o.getType() == CLOUD_TEACHER)
|
|
|
+ && !(o.getType() == CLOUD_TEACHER)
|
|
|
+ && !(o.getType() == ACCESSORIES))
|
|
|
.map(o -> o.getPrice().subtract(o.getRemitFee() == null ? BigDecimal.ZERO : o.getRemitFee()))
|
|
|
.reduce(BigDecimal.ZERO, BigDecimal::add);
|
|
|
|