|  | @@ -1163,29 +1163,22 @@ public class ExportController extends BaseController {
 | 
	
		
			
				|  |  |                      }
 | 
	
		
			
				|  |  |                      row.setDegreeFee(row.getActualAmount().subtract(row.getVipCourseFee()).subtract(row.getPracticeCourseFee()).subtract(row.getTheoryCourseFee()));
 | 
	
		
			
				|  |  |                  } else {
 | 
	
		
			
				|  |  | -                    if(row.getChargeType() != null && SporadicChargeTypeEnum.LEVEL.getCode().equals(row.getChargeType())){
 | 
	
		
			
				|  |  | +                    if (row.getChargeType() != null && SporadicChargeTypeEnum.LEVEL.getCode().equals(row.getChargeType())) {
 | 
	
		
			
				|  |  |                          row.setDegreeFee(row.getActualAmount());
 | 
	
		
			
				|  |  | -                    }else if(row.getChargeType() != null && SporadicChargeTypeEnum.PRACTICE_GROUP_BUY.getCode().equals(row.getChargeType())){
 | 
	
		
			
				|  |  | +                    } else if (row.getChargeType() != null && SporadicChargeTypeEnum.PRACTICE_GROUP_BUY.getCode().equals(row.getChargeType())) {
 | 
	
		
			
				|  |  |                          row.setPracticeCourseFee(row.getActualAmount());
 | 
	
		
			
				|  |  |                      } else {
 | 
	
		
			
				|  |  |                          row.setOtherFee(row.getActualAmount());
 | 
	
		
			
				|  |  | -                    }                }
 | 
	
		
			
				|  |  | +                    }
 | 
	
		
			
				|  |  | +                }
 | 
	
		
			
				|  |  |                  if (row.getChargeType() != null) {
 | 
	
		
			
				|  |  |                      for (SporadicChargeTypeEnum chargeType : SporadicChargeTypeEnum.values()) {
 | 
	
		
			
				|  |  |                          if (!chargeType.getCode().equals(row.getChargeType())) continue;
 | 
	
		
			
				|  |  |                          row.setSporadicType(chargeType.getMsg());
 | 
	
		
			
				|  |  |                      }
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  | -                School userSchool = musicGroupDao.findUserSchool(row.getUserId());
 | 
	
		
			
				|  |  | -                if (userSchool != null) {
 | 
	
		
			
				|  |  | -                    row.setSchoolName(userSchool.getName());
 | 
	
		
			
				|  |  | -                }
 | 
	
		
			
				|  |  |              } else if (row.getGroupType().equals(GroupType.PRACTICE)) {
 | 
	
		
			
				|  |  |                  row.setPracticeCourseFee(row.getActualAmount());
 | 
	
		
			
				|  |  | -                School userSchool = musicGroupDao.findUserSchool(row.getUserId());
 | 
	
		
			
				|  |  | -                if (userSchool != null) {
 | 
	
		
			
				|  |  | -                    row.setSchoolName(userSchool.getName());
 | 
	
		
			
				|  |  | -                }
 | 
	
		
			
				|  |  |                  PracticeCourseDto practiceGroup = practiceGroupDao.findByGroupId(Integer.parseInt(row.getMusicGroupId()));
 | 
	
		
			
				|  |  |                  if (practiceGroup != null) {
 | 
	
		
			
				|  |  |                      row.setSubjectName(practiceGroup.getSubjectName());
 | 
	
	
		
			
				|  | @@ -1211,7 +1204,18 @@ public class ExportController extends BaseController {
 | 
	
		
			
				|  |  |                      row.setTransferFee(BigDecimal.ZERO);
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  | -            if (row.getMusicGroupId()!= null && row.getMusicGroupId().equals("null")) {
 | 
	
		
			
				|  |  | +            //如果合作单位不存在取学员的第一个乐团的合作单位和教学点
 | 
	
		
			
				|  |  | +            if (row.getCooperationOrganName() == null) {
 | 
	
		
			
				|  |  | +                CooperationOrgan cooperationOrgan = musicGroupDao.findUserMusicGroupCooperationOrgan(row.getUserId());
 | 
	
		
			
				|  |  | +                if (cooperationOrgan != null) {
 | 
	
		
			
				|  |  | +                    row.setCooperationOrganName(cooperationOrgan.getName());
 | 
	
		
			
				|  |  | +                }
 | 
	
		
			
				|  |  | +                if (row.getSchoolName() == null && cooperationOrgan != null) {
 | 
	
		
			
				|  |  | +                    //linkman 赋予教学点值
 | 
	
		
			
				|  |  | +                    row.setSchoolName(cooperationOrgan.getLinkman());
 | 
	
		
			
				|  |  | +                }
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  | +            if (row.getMusicGroupId() != null && row.getMusicGroupId().equals("null")) {
 | 
	
		
			
				|  |  |                  row.setMusicGroupId("");
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |              String paymentChannel = "";
 | 
	
	
		
			
				|  | @@ -1290,25 +1294,25 @@ public class ExportController extends BaseController {
 | 
	
		
			
				|  |  |                  if (row.getNextPaymentDate() != null) {
 | 
	
		
			
				|  |  |                      row.setNextPaymentDateStr(DateUtil.format(row.getNextPaymentDate(), DateUtil.DEFAULT_PATTERN));
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  | -                if(Objects.isNull(row.getCarePackage())||row.getCarePackage().equals(0)){
 | 
	
		
			
				|  |  | +                if (Objects.isNull(row.getCarePackage()) || row.getCarePackage().equals(0)) {
 | 
	
		
			
				|  |  |                      row.setCarePackageStr("不可用");
 | 
	
		
			
				|  |  | -                }else if(row.getCarePackage().equals(1)){
 | 
	
		
			
				|  |  | +                } else if (row.getCarePackage().equals(1)) {
 | 
	
		
			
				|  |  |                      row.setCarePackageStr("可用");
 | 
	
		
			
				|  |  | -                }else if(row.getCarePackage().equals(2)){
 | 
	
		
			
				|  |  | +                } else if (row.getCarePackage().equals(2)) {
 | 
	
		
			
				|  |  |                      row.setCarePackageStr("已使用");
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  | -                if(Objects.isNull(row.getComeOnPackage())||row.getComeOnPackage().equals(0)){
 | 
	
		
			
				|  |  | +                if (Objects.isNull(row.getComeOnPackage()) || row.getComeOnPackage().equals(0)) {
 | 
	
		
			
				|  |  |                      row.setComeOnPackageStr("不可用");
 | 
	
		
			
				|  |  | -                }else if(row.getComeOnPackage().equals(1)){
 | 
	
		
			
				|  |  | +                } else if (row.getComeOnPackage().equals(1)) {
 | 
	
		
			
				|  |  |                      row.setComeOnPackageStr("可用");
 | 
	
		
			
				|  |  | -                }else if(row.getComeOnPackage().equals(2)){
 | 
	
		
			
				|  |  | +                } else if (row.getComeOnPackage().equals(2)) {
 | 
	
		
			
				|  |  |                      row.setComeOnPackageStr("已使用");
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |              String[] header = {"学员编号", "学员姓名", "性别", "联系电话", "年级", "班级", "专业", "学员状态", "新增学员", "缴费金额",
 | 
	
		
			
				|  |  | -                        "下次缴费日期", "是否报名缴费", "是否激活", "是否有剩余VIP", "是否有剩余网管课", "欠费总额", "关心包", "加油包"};
 | 
	
		
			
				|  |  | +                    "下次缴费日期", "是否报名缴费", "是否激活", "是否有剩余VIP", "是否有剩余网管课", "欠费总额", "关心包", "加油包"};
 | 
	
		
			
				|  |  |              String[] body = {"userId", "realName", "gender", "phone", "currentGrade", "currentClass", "subjectName", "studentStatus", "isNewStudentStr",
 | 
	
		
			
				|  |  | -                    "courseFee", "nextPaymentDateStr", "paymentStatus.desc", "activeName", "hasVip ? '是' : '否'", "hasPractice ? '是' : '否'","noPaymentAmount",
 | 
	
		
			
				|  |  | +                    "courseFee", "nextPaymentDateStr", "paymentStatus.desc", "activeName", "hasVip ? '是' : '否'", "hasPractice ? '是' : '否'", "noPaymentAmount",
 | 
	
		
			
				|  |  |                      "carePackageStr", "comeOnPackageStr"};
 | 
	
		
			
				|  |  |              HSSFWorkbook workbook = POIUtil.exportExcel(header, body, musicGroupStudentsDtoPageInfo.getRows());
 | 
	
		
			
				|  |  |              response.setContentType("application/octet-stream");
 | 
	
	
		
			
				|  | @@ -2312,11 +2316,11 @@ public class ExportController extends BaseController {
 | 
	
		
			
				|  |  |                      }
 | 
	
		
			
				|  |  |                      row.setDegreeFee(row.getActualAmount().subtract(row.getVipCourseFee()).subtract(row.getPracticeCourseFee()).subtract(row.getTheoryCourseFee()));
 | 
	
		
			
				|  |  |                  } else {
 | 
	
		
			
				|  |  | -                    if(row.getChargeType() != null && SporadicChargeTypeEnum.LEVEL.getCode().equals(row.getChargeType())){
 | 
	
		
			
				|  |  | +                    if (row.getChargeType() != null && SporadicChargeTypeEnum.LEVEL.getCode().equals(row.getChargeType())) {
 | 
	
		
			
				|  |  |                          row.setDegreeFee(row.getActualAmount());
 | 
	
		
			
				|  |  | -                    }else if(row.getChargeType() != null && SporadicChargeTypeEnum.PRACTICE_GROUP_BUY.getCode().equals(row.getChargeType())){
 | 
	
		
			
				|  |  | +                    } else if (row.getChargeType() != null && SporadicChargeTypeEnum.PRACTICE_GROUP_BUY.getCode().equals(row.getChargeType())) {
 | 
	
		
			
				|  |  |                          row.setPracticeCourseFee(row.getActualAmount());
 | 
	
		
			
				|  |  | -                    }else {
 | 
	
		
			
				|  |  | +                    } else {
 | 
	
		
			
				|  |  |                          row.setOtherFee(row.getActualAmount());
 | 
	
		
			
				|  |  |                      }
 | 
	
		
			
				|  |  |                  }
 | 
	
	
		
			
				|  | @@ -2326,16 +2330,8 @@ public class ExportController extends BaseController {
 | 
	
		
			
				|  |  |                          row.setSporadicType(chargeType.getMsg());
 | 
	
		
			
				|  |  |                      }
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  | -                School userSchool = musicGroupDao.findUserSchool(row.getUserId());
 | 
	
		
			
				|  |  | -                if (userSchool != null) {
 | 
	
		
			
				|  |  | -                    row.setSchoolName(userSchool.getName());
 | 
	
		
			
				|  |  | -                }
 | 
	
		
			
				|  |  |              } else if (row.getGroupType().equals(GroupType.PRACTICE)) {
 | 
	
		
			
				|  |  |                  row.setPracticeCourseFee(row.getActualAmount());
 | 
	
		
			
				|  |  | -                School userSchool = musicGroupDao.findUserSchool(row.getUserId());
 | 
	
		
			
				|  |  | -                if (userSchool != null) {
 | 
	
		
			
				|  |  | -                    row.setSchoolName(userSchool.getName());
 | 
	
		
			
				|  |  | -                }
 | 
	
		
			
				|  |  |                  PracticeCourseDto practiceGroup = practiceGroupDao.findByGroupId(Integer.parseInt(row.getMusicGroupId()));
 | 
	
		
			
				|  |  |                  if (practiceGroup != null) {
 | 
	
		
			
				|  |  |                      row.setSubjectName(practiceGroup.getSubjectName());
 | 
	
	
		
			
				|  | @@ -2361,7 +2357,16 @@ public class ExportController extends BaseController {
 | 
	
		
			
				|  |  |                      row.setTransferFee(BigDecimal.ZERO);
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  | -            if (row.getMusicGroupId()!= null && row.getMusicGroupId().equals("null")) {
 | 
	
		
			
				|  |  | +            //如果合作单位不存在取学员的第一个乐团的合作单位和教学点
 | 
	
		
			
				|  |  | +            if (row.getCooperationOrganName() == null) {
 | 
	
		
			
				|  |  | +                CooperationOrgan cooperationOrgan = musicGroupDao.findUserMusicGroupCooperationOrgan(row.getUserId());
 | 
	
		
			
				|  |  | +                row.setCooperationOrganName(cooperationOrgan.getName());
 | 
	
		
			
				|  |  | +                if (row.getSchoolName() != null) {
 | 
	
		
			
				|  |  | +                    //linkman 赋予教学点值
 | 
	
		
			
				|  |  | +                    row.setSchoolName(cooperationOrgan.getLinkman());
 | 
	
		
			
				|  |  | +                }
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  | +            if (row.getMusicGroupId() != null && row.getMusicGroupId().equals("null")) {
 | 
	
		
			
				|  |  |                  row.setMusicGroupId("");
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |              String paymentChannel = "";
 |