|
@@ -668,6 +668,7 @@ public class ExportServiceImpl implements ExportService {
|
|
BigDecimal routeTeachingFee = BigDecimal.ZERO;
|
|
BigDecimal routeTeachingFee = BigDecimal.ZERO;
|
|
BigDecimal routeOtherFee = BigDecimal.ZERO;
|
|
BigDecimal routeOtherFee = BigDecimal.ZERO;
|
|
BigDecimal routeCloudTeacherFee = BigDecimal.ZERO;
|
|
BigDecimal routeCloudTeacherFee = BigDecimal.ZERO;
|
|
|
|
+ BigDecimal routeRechargeFee = BigDecimal.ZERO;
|
|
for (StudentPaymentOrderExportDto order : orders) {
|
|
for (StudentPaymentOrderExportDto order : orders) {
|
|
Date endDate = DateUtil.stringToDate("2021-04-01", "yyyy-MM-dd");
|
|
Date endDate = DateUtil.stringToDate("2021-04-01", "yyyy-MM-dd");
|
|
if (order.getPayTime() == null || order.getPayTime().compareTo(endDate) < 0) {
|
|
if (order.getPayTime() == null || order.getPayTime().compareTo(endDate) < 0) {
|
|
@@ -704,6 +705,7 @@ public class ExportServiceImpl implements ExportService {
|
|
BigDecimal teachingFee = BigDecimal.ZERO;
|
|
BigDecimal teachingFee = BigDecimal.ZERO;
|
|
BigDecimal otherFee = BigDecimal.ZERO;
|
|
BigDecimal otherFee = BigDecimal.ZERO;
|
|
BigDecimal cloudTeacherFee = BigDecimal.ZERO;
|
|
BigDecimal cloudTeacherFee = BigDecimal.ZERO;
|
|
|
|
+ BigDecimal rechargeFee = BigDecimal.ZERO;
|
|
|
|
|
|
if (order.getActualAmount() != null && order.getActualAmount().compareTo(BigDecimal.ZERO) > 0) {
|
|
if (order.getActualAmount() != null && order.getActualAmount().compareTo(BigDecimal.ZERO) > 0) {
|
|
musicGroupCourseFee = order.getMusicGroupCourseFee().multiply(order.getRouteAmount()).divide(order.getActualAmount(), 2, BigDecimal.ROUND_DOWN);
|
|
musicGroupCourseFee = order.getMusicGroupCourseFee().multiply(order.getRouteAmount()).divide(order.getActualAmount(), 2, BigDecimal.ROUND_DOWN);
|
|
@@ -732,6 +734,8 @@ public class ExportServiceImpl implements ExportService {
|
|
degreeFee = order.getRouteAmount();
|
|
degreeFee = order.getRouteAmount();
|
|
} else if (order.getChargeType() != null && SporadicChargeTypeEnum.PRACTICE_GROUP_BUY.getCode().equals(order.getChargeType())) {
|
|
} else if (order.getChargeType() != null && SporadicChargeTypeEnum.PRACTICE_GROUP_BUY.getCode().equals(order.getChargeType())) {
|
|
practiceCourseFee = order.getRouteAmount();
|
|
practiceCourseFee = order.getRouteAmount();
|
|
|
|
+ } else if (order.getChargeType() != null && SporadicChargeTypeEnum.RECHARGE.getCode().equals(order.getChargeType())) {
|
|
|
|
+ rechargeFee = order.getRouteAmount();
|
|
} else {
|
|
} else {
|
|
otherFee = order.getRouteAmount();
|
|
otherFee = order.getRouteAmount();
|
|
}
|
|
}
|
|
@@ -761,6 +765,7 @@ public class ExportServiceImpl implements ExportService {
|
|
musicalFee = order.getMusicalFee().subtract(routeMusicalFee);
|
|
musicalFee = order.getMusicalFee().subtract(routeMusicalFee);
|
|
teachingFee = order.getTeachingFee().subtract(routeTeachingFee);
|
|
teachingFee = order.getTeachingFee().subtract(routeTeachingFee);
|
|
otherFee = order.getOtherFee().subtract(routeOtherFee);
|
|
otherFee = order.getOtherFee().subtract(routeOtherFee);
|
|
|
|
+ rechargeFee = order.getRechargeFee().subtract(routeRechargeFee);
|
|
cloudTeacherFee = order.getCloudTeacherFee().subtract(routeCloudTeacherFee);
|
|
cloudTeacherFee = order.getCloudTeacherFee().subtract(routeCloudTeacherFee);
|
|
}
|
|
}
|
|
j++;
|
|
j++;
|
|
@@ -777,6 +782,7 @@ public class ExportServiceImpl implements ExportService {
|
|
routeMusicalFee = routeMusicalFee.add(musicalFee);
|
|
routeMusicalFee = routeMusicalFee.add(musicalFee);
|
|
routeTeachingFee = routeTeachingFee.add(teachingFee);
|
|
routeTeachingFee = routeTeachingFee.add(teachingFee);
|
|
routeOtherFee = routeOtherFee.add(otherFee);
|
|
routeOtherFee = routeOtherFee.add(otherFee);
|
|
|
|
+ routeRechargeFee = routeRechargeFee.add(rechargeFee);
|
|
routeCloudTeacherFee = routeCloudTeacherFee.add(cloudTeacherFee);
|
|
routeCloudTeacherFee = routeCloudTeacherFee.add(cloudTeacherFee);
|
|
|
|
|
|
order.setMusicGroupCourseFee(musicGroupCourseFee);
|
|
order.setMusicGroupCourseFee(musicGroupCourseFee);
|
|
@@ -791,6 +797,7 @@ public class ExportServiceImpl implements ExportService {
|
|
order.setMusicalFee(musicalFee);
|
|
order.setMusicalFee(musicalFee);
|
|
order.setTeachingFee(teachingFee);
|
|
order.setTeachingFee(teachingFee);
|
|
order.setOtherFee(otherFee);
|
|
order.setOtherFee(otherFee);
|
|
|
|
+ order.setRechargeFee(rechargeFee);
|
|
order.setCloudTeacherFee(cloudTeacherFee);
|
|
order.setCloudTeacherFee(cloudTeacherFee);
|
|
}
|
|
}
|
|
});
|
|
});
|