|
@@ -206,7 +206,7 @@ public class ExportController extends BaseController {
|
|
|
if (studentRegistration != null) {
|
|
|
row.setSubjectName(studentRegistration.getSubjectName());
|
|
|
row.setSchoolName(studentRegistration.getSchoolName());
|
|
|
- if (studentRegistration.getKitType() != null && studentRegistration.getKitType().equals(KitPurchaseMethodEnum.LEASE)) {
|
|
|
+ if (studentRegistration.getKitType() != null && studentRegistration.getKitType().equals("LEASE")) {
|
|
|
row.setLeaseFee(musicalFee);
|
|
|
row.setMusicalFee(BigDecimal.ZERO);
|
|
|
}
|
|
@@ -219,22 +219,20 @@ public class ExportController extends BaseController {
|
|
|
}
|
|
|
|
|
|
} else if (row.getGroupType().equals(GroupType.SPORADIC)) {
|
|
|
- SporadicChargeInfo sporadicChargeInfo = sporadicChargeInfoDao.findInfoById(Integer.parseInt(row.getMusicGroupId()));
|
|
|
row.setSporadicAmount(row.getActualAmount());
|
|
|
row.setMusicalFee(BigDecimal.ZERO);
|
|
|
row.setTeachingFee(BigDecimal.ZERO);
|
|
|
row.setTeachingFee(BigDecimal.ZERO);
|
|
|
- if (sporadicChargeInfo != null) {
|
|
|
- if (sporadicChargeInfo.getChargeType().equals("1")) {
|
|
|
+ if (row.getChargeType() != null) {
|
|
|
+ if (row.getChargeType().equals(1)) {
|
|
|
row.setSporadicType("考级");
|
|
|
- } else if (sporadicChargeInfo.getChargeType().equals("2")) {
|
|
|
+ } else if (row.getChargeType().equals(2)) {
|
|
|
row.setSporadicType("缴费");
|
|
|
- } else if (sporadicChargeInfo.getChargeType().equals("3")) {
|
|
|
+ } else if (row.getChargeType().equals(3)) {
|
|
|
row.setSporadicType("声部更改");
|
|
|
- } else if (sporadicChargeInfo.getChargeType().equals("4")) {
|
|
|
+ } else if (row.getChargeType().equals(4)) {
|
|
|
row.setSporadicType("乐器更换");
|
|
|
}
|
|
|
- row.setOrganName(sporadicChargeInfo.getOrganName());
|
|
|
}
|
|
|
}
|
|
|
String paymentChannel = "";
|