|
@@ -154,6 +154,27 @@ public class ExportServiceImpl implements ExportService {
|
|
}
|
|
}
|
|
row.setCloudTeacherFee(cloudTeacherFee);
|
|
row.setCloudTeacherFee(cloudTeacherFee);
|
|
break;
|
|
break;
|
|
|
|
+ case DEGREE_REGISTRATION:
|
|
|
|
+ BigDecimal degreeFee = BigDecimal.ZERO;
|
|
|
|
+ if (row.getExpectAmount().compareTo(BigDecimal.ZERO) > 0) {
|
|
|
|
+ degreeFee = orderDetail.getPrice().multiply(row.getActualAmount()).divide(row.getExpectAmount(), 2, BigDecimal.ROUND_DOWN);
|
|
|
|
+ }
|
|
|
|
+ row.setDegreeFee(degreeFee);
|
|
|
|
+ break;
|
|
|
|
+ case VIP:
|
|
|
|
+ BigDecimal vipCourseFee = BigDecimal.ZERO;
|
|
|
|
+ if (row.getExpectAmount().compareTo(BigDecimal.ZERO) > 0) {
|
|
|
|
+ vipCourseFee = orderDetail.getPrice().multiply(row.getActualAmount()).divide(row.getExpectAmount(), 2, BigDecimal.ROUND_DOWN);
|
|
|
|
+ }
|
|
|
|
+ row.setVipCourseFee(vipCourseFee);
|
|
|
|
+ break;
|
|
|
|
+ case THEORY_COURSE:
|
|
|
|
+ BigDecimal theoryCourseFee = BigDecimal.ZERO;
|
|
|
|
+ if (row.getExpectAmount().compareTo(BigDecimal.ZERO) > 0) {
|
|
|
|
+ theoryCourseFee = orderDetail.getPrice().multiply(row.getActualAmount()).divide(row.getExpectAmount(), 2, BigDecimal.ROUND_DOWN);
|
|
|
|
+ }
|
|
|
|
+ row.setTheoryCourseFee(theoryCourseFee);
|
|
|
|
+ break;
|
|
default:
|
|
default:
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
@@ -424,6 +445,27 @@ public class ExportServiceImpl implements ExportService {
|
|
}
|
|
}
|
|
row.setCloudTeacherFee(cloudTeacherFee);
|
|
row.setCloudTeacherFee(cloudTeacherFee);
|
|
break;
|
|
break;
|
|
|
|
+ case DEGREE_REGISTRATION:
|
|
|
|
+ BigDecimal degreeFee = BigDecimal.ZERO;
|
|
|
|
+ if (row.getExpectAmount().compareTo(BigDecimal.ZERO) > 0) {
|
|
|
|
+ degreeFee = orderDetail.getPrice().multiply(row.getActualAmount()).divide(row.getExpectAmount(), 2, BigDecimal.ROUND_DOWN);
|
|
|
|
+ }
|
|
|
|
+ row.setDegreeFee(degreeFee);
|
|
|
|
+ break;
|
|
|
|
+ case VIP:
|
|
|
|
+ BigDecimal vipCourseFee = BigDecimal.ZERO;
|
|
|
|
+ if (row.getExpectAmount().compareTo(BigDecimal.ZERO) > 0) {
|
|
|
|
+ vipCourseFee = orderDetail.getPrice().multiply(row.getActualAmount()).divide(row.getExpectAmount(), 2, BigDecimal.ROUND_DOWN);
|
|
|
|
+ }
|
|
|
|
+ row.setVipCourseFee(vipCourseFee);
|
|
|
|
+ break;
|
|
|
|
+ case THEORY_COURSE:
|
|
|
|
+ BigDecimal theoryCourseFee = BigDecimal.ZERO;
|
|
|
|
+ if (row.getExpectAmount().compareTo(BigDecimal.ZERO) > 0) {
|
|
|
|
+ theoryCourseFee = orderDetail.getPrice().multiply(row.getActualAmount()).divide(row.getExpectAmount(), 2, BigDecimal.ROUND_DOWN);
|
|
|
|
+ }
|
|
|
|
+ row.setTheoryCourseFee(theoryCourseFee);
|
|
|
|
+ break;
|
|
default:
|
|
default:
|
|
break;
|
|
break;
|
|
}
|
|
}
|