|
@@ -126,7 +126,7 @@ public class ExportServiceImpl implements ExportService {
|
|
|
if (row.getExpectAmount().compareTo(BigDecimal.ZERO) > 0) {
|
|
|
repairFee = orderDetail.getPrice().multiply(row.getActualAmount()).divide(row.getExpectAmount(), 2, BigDecimal.ROUND_DOWN);
|
|
|
}
|
|
|
- row.setRepairFee(repairFee);
|
|
|
+ row.setMaintenanceFee(repairFee);
|
|
|
default:
|
|
|
break;
|
|
|
}
|
|
@@ -194,7 +194,7 @@ public class ExportServiceImpl implements ExportService {
|
|
|
StudentPaymentOrderExportDto feeByType = sellOrderDao.getFeeByType(row.getId());
|
|
|
row.setMusicalFee(feeByType.getMusicalFee());
|
|
|
row.setTeachingFee(feeByType.getTeachingFee());
|
|
|
- row.setRepairFee(row.getRepairFee().add(feeByType.getRepairFee()));
|
|
|
+ row.setMaintenanceProductFee(feeByType.getRepairFee());
|
|
|
row.setOtherFee(feeByType.getOtherFee());
|
|
|
if (row.getGroupType().equals(GroupType.MUSIC)) {
|
|
|
StudentRegistration studentRegistration = studentRegistrationDao.findStudentByMusicGroupIdAndUserId(row.getMusicGroupId(), row.getUserId());
|
|
@@ -203,11 +203,11 @@ public class ExportServiceImpl implements ExportService {
|
|
|
row.setSchoolName(studentRegistration.getSchoolName());
|
|
|
row.setCooperationOrganName(studentRegistration.getRemark());
|
|
|
}
|
|
|
- row.setMusicGroupCourseFee(feeByType.getActualAmount().subtract(feeByType.getMusicalFee()).subtract(feeByType.getTeachingFee()).subtract(row.getRepairFee()).subtract(feeByType.getOtherFee()).subtract(row.getLeaseFee()));
|
|
|
+ row.setMusicGroupCourseFee(feeByType.getActualAmount().subtract(feeByType.getMusicalFee()).subtract(feeByType.getTeachingFee()).subtract(row.getMaintenanceFee()).subtract(row.getMaintenanceProductFee()).subtract(feeByType.getOtherFee()).subtract(row.getLeaseFee()));
|
|
|
} else if (row.getType().equals(OrderTypeEnum.REPAIR)) {
|
|
|
row.setRepairFee(feeByType.getActualAmount().subtract(feeByType.getMusicalFee()).subtract(feeByType.getTeachingFee()).subtract(feeByType.getOtherFee()));
|
|
|
} else if (row.getType().equals(OrderTypeEnum.OUTORDER)) {
|
|
|
- row.setMusicGroupCourseFee(feeByType.getActualAmount().subtract(feeByType.getMusicalFee()).subtract(feeByType.getTeachingFee()).subtract(feeByType.getRepairFee()).subtract(feeByType.getOtherFee()));
|
|
|
+ row.setMusicGroupCourseFee(feeByType.getActualAmount().subtract(feeByType.getMusicalFee()).subtract(feeByType.getTeachingFee()).subtract(row.getMaintenanceProductFee()).subtract(feeByType.getOtherFee()));
|
|
|
row.setTransferFee(BigDecimal.ZERO);
|
|
|
}
|
|
|
}
|
|
@@ -232,6 +232,7 @@ public class ExportServiceImpl implements ExportService {
|
|
|
}
|
|
|
row.setPaymentChannel(paymentChannel);
|
|
|
row.setId(i);
|
|
|
+ row.setRepairFee(row.getRepairFee().add(row.getMaintenanceFee()).add(row.getMaintenanceProductFee()));
|
|
|
i++;
|
|
|
}
|
|
|
|
|
@@ -463,7 +464,7 @@ public class ExportServiceImpl implements ExportService {
|
|
|
BigDecimal routeTeachingFee = BigDecimal.ZERO;
|
|
|
BigDecimal routeOtherFee = BigDecimal.ZERO;
|
|
|
for (StudentPaymentOrderExportDto order : orders) {
|
|
|
- Date endDate = DateUtil.stringToDate("2021-03-01", "yyyy-MM-dd");
|
|
|
+ Date endDate = DateUtil.stringToDate("2021-04-01", "yyyy-MM-dd");
|
|
|
if (order.getPayTime() == null || order.getPayTime().compareTo(endDate) < 0) {
|
|
|
break;
|
|
|
}
|