|
@@ -192,9 +192,10 @@ public class ExportServiceImpl implements ExportService {
|
|
|
}
|
|
|
} else {
|
|
|
StudentPaymentOrderExportDto feeByType = sellOrderDao.getFeeByType(row.getId());
|
|
|
+ BigDecimal childRepairFee = sellOrderDao.getChildRepair(row.getId());
|
|
|
row.setMusicalFee(feeByType.getMusicalFee());
|
|
|
- row.setTeachingFee(feeByType.getTeachingFee());
|
|
|
- row.setMaintenanceProductFee(feeByType.getRepairFee());
|
|
|
+ row.setTeachingFee(feeByType.getTeachingFee().subtract(childRepairFee));
|
|
|
+ row.setMaintenanceProductFee(feeByType.getRepairFee().add(childRepairFee));
|
|
|
row.setOtherFee(feeByType.getOtherFee());
|
|
|
if (row.getGroupType().equals(GroupType.MUSIC)) {
|
|
|
StudentRegistration studentRegistration = studentRegistrationDao.findStudentByMusicGroupIdAndUserId(row.getMusicGroupId(), row.getUserId());
|
|
@@ -406,9 +407,10 @@ public class ExportServiceImpl implements ExportService {
|
|
|
}
|
|
|
} else {
|
|
|
StudentPaymentOrderExportDto feeByType = sellOrderDao.getFeeByType(row.getId());
|
|
|
+ BigDecimal childRepairFee = sellOrderDao.getChildRepair(row.getId());
|
|
|
row.setMusicalFee(feeByType.getMusicalFee());
|
|
|
- row.setTeachingFee(feeByType.getTeachingFee());
|
|
|
- row.setMaintenanceProductFee(feeByType.getRepairFee());
|
|
|
+ row.setTeachingFee(feeByType.getTeachingFee().subtract(childRepairFee));
|
|
|
+ row.setMaintenanceProductFee(feeByType.getRepairFee().add(childRepairFee));
|
|
|
row.setOtherFee(feeByType.getOtherFee());
|
|
|
if (row.getGroupType().equals(GroupType.MUSIC)) {
|
|
|
StudentRegistration studentRegistration = studentRegistrationDao.findStudentByMusicGroupIdAndUserId(row.getMusicGroupId(), row.getUserId());
|