瀏覽代碼

add 退团扣除减免费用

周箭河 5 年之前
父節點
當前提交
857864dd9c
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      mec-web/src/main/java/com/ym/mec/web/controller/ExportController.java

+ 2 - 1
mec-web/src/main/java/com/ym/mec/web/controller/ExportController.java

@@ -227,7 +227,8 @@ public class ExportController extends BaseController {
                     row.setSubjectName(studentRegistration.getSubjectName());
                     row.setSchoolName(studentRegistration.getSchoolName());
                     //更新数据后删除
-                    if (row.getType().equals(OrderTypeEnum.APPLY) && studentRegistration.getKitType() != null && studentRegistration.getKitType().equals("LEASE")) {
+                    if (leaseFee.compareTo(BigDecimal.ZERO) >0 ||
+                            row.getType().equals(OrderTypeEnum.APPLY) && studentRegistration.getKitType() != null && studentRegistration.getKitType().equals("LEASE")) {
                         row.setLeaseFee(musicalFee);
                         row.setMusicalFee(BigDecimal.ZERO);
                     }