|
@@ -110,7 +110,7 @@ public class StudentPaymentOrderDetailServiceImpl extends BaseServiceImpl<Long,
|
|
BigDecimal waitRemitFee = couponRemitFee;
|
|
BigDecimal waitRemitFee = couponRemitFee;
|
|
//已使用减免金额
|
|
//已使用减免金额
|
|
BigDecimal useRemitFee = BigDecimal.ZERO;
|
|
BigDecimal useRemitFee = BigDecimal.ZERO;
|
|
- List<StudentPaymentOrderDetail> collect = studentPaymentOrderDetailList.stream().filter(e -> e.getPrice().compareTo(BigDecimal.ZERO) > 0).collect(Collectors.toList());
|
|
|
|
|
|
+ List<StudentPaymentOrderDetail> collect = studentPaymentOrderDetailList.stream().filter(e -> (e.getPrice().compareTo(BigDecimal.ZERO) > 0 && e.getType() != OrderDetailTypeEnum.ORGAN_SHARE_PROFIT)).collect(Collectors.toList());
|
|
if (collect.size() == 0) {
|
|
if (collect.size() == 0) {
|
|
throw new BizException("订单金额异常");
|
|
throw new BizException("订单金额异常");
|
|
}
|
|
}
|
|
@@ -571,9 +571,11 @@ public class StudentPaymentOrderDetailServiceImpl extends BaseServiceImpl<Long,
|
|
&& !(o.getType() == MAINTENANCE)
|
|
&& !(o.getType() == MAINTENANCE)
|
|
&& !(o.getType() == CLOUD_TEACHER)
|
|
&& !(o.getType() == CLOUD_TEACHER)
|
|
&& !(o.getType() == CLOUD_TEACHER_PLUS)
|
|
&& !(o.getType() == CLOUD_TEACHER_PLUS)
|
|
|
|
+ && !(o.getType() == ORGAN_SHARE_PROFIT)
|
|
&& !(o.getType() == ACCESSORIES))
|
|
&& !(o.getType() == ACCESSORIES))
|
|
.map(o -> o.getPrice().subtract(o.getRemitFee() == null ? BigDecimal.ZERO : o.getRemitFee()))
|
|
.map(o -> o.getPrice().subtract(o.getRemitFee() == null ? BigDecimal.ZERO : o.getRemitFee()))
|
|
.reduce(BigDecimal.ZERO, BigDecimal::add);
|
|
.reduce(BigDecimal.ZERO, BigDecimal::add);
|
|
|
|
+
|
|
if (studentRegistration.getTemporaryCourseFee() != null) {
|
|
if (studentRegistration.getTemporaryCourseFee() != null) {
|
|
studentRegistration.setTemporaryCourseFee(new BigDecimal(0));
|
|
studentRegistration.setTemporaryCourseFee(new BigDecimal(0));
|
|
}
|
|
}
|