|
@@ -9,6 +9,7 @@ import com.ym.mec.biz.dal.dao.VipGroupDao;
|
|
|
import com.ym.mec.biz.dal.dto.*;
|
|
|
import com.ym.mec.biz.dal.entity.*;
|
|
|
import com.ym.mec.biz.dal.enums.GroupType;
|
|
|
+import com.ym.mec.biz.dal.enums.KitGroupPurchaseTypeEnum;
|
|
|
import com.ym.mec.biz.dal.enums.OrderDetailTypeEnum;
|
|
|
import com.ym.mec.biz.dal.enums.OrderTypeEnum;
|
|
|
import com.ym.mec.biz.dal.page.CourseScheduleTeacherSalaryQueryInfo;
|
|
@@ -195,12 +196,15 @@ public class ExportController extends BaseController {
|
|
|
BigDecimal musicalFee = BigDecimal.ZERO;
|
|
|
BigDecimal teachingFee = BigDecimal.ZERO;
|
|
|
BigDecimal courseFee = BigDecimal.ZERO;
|
|
|
+ BigDecimal leaseFee = BigDecimal.ZERO;
|
|
|
String goodsName = "";
|
|
|
if (row.getOrderDetailList() != null) {
|
|
|
for (StudentPaymentOrderDetail orderDetail : row.getOrderDetailList()) {
|
|
|
if (orderDetail.getType().equals(OrderDetailTypeEnum.MUSICAL)) {
|
|
|
- musicalFee = musicalFee.add(orderDetail.getPrice());
|
|
|
-
|
|
|
+ musicalFee = orderDetail.getPrice();
|
|
|
+ if(orderDetail.getKitGroupPurchaseType() != null && orderDetail.getKitGroupPurchaseType().equals(KitGroupPurchaseTypeEnum.LEASE)){
|
|
|
+ leaseFee = orderDetail.getPrice();
|
|
|
+ }
|
|
|
} else if (orderDetail.getType().equals(OrderDetailTypeEnum.COURSE)) {
|
|
|
courseFee = courseFee.add(orderDetail.getPrice());
|
|
|
} else if (orderDetail.getType().equals(OrderDetailTypeEnum.ACCESSORIES) || orderDetail.getType().equals(OrderDetailTypeEnum.TEACHING) || orderDetail.getType().equals(OrderDetailTypeEnum.OTHER)) {
|
|
@@ -214,6 +218,7 @@ public class ExportController extends BaseController {
|
|
|
row.setCourseFee(courseFee);
|
|
|
row.setMusicalFee(musicalFee);
|
|
|
row.setTeachingFee(teachingFee);
|
|
|
+ row.setLeaseFee(leaseFee);
|
|
|
row.setMemo(goodsName);
|
|
|
//专业
|
|
|
if (row.getGroupType().equals(GroupType.MUSIC)) {
|
|
@@ -221,6 +226,7 @@ public class ExportController extends BaseController {
|
|
|
if (studentRegistration != null) {
|
|
|
row.setSubjectName(studentRegistration.getSubjectName());
|
|
|
row.setSchoolName(studentRegistration.getSchoolName());
|
|
|
+ //更新数据后删除
|
|
|
if (row.getType().equals(OrderTypeEnum.APPLY) && studentRegistration.getKitType() != null && studentRegistration.getKitType().equals("LEASE")) {
|
|
|
row.setLeaseFee(musicalFee);
|
|
|
row.setMusicalFee(BigDecimal.ZERO);
|