|  | @@ -100,6 +100,8 @@ public class ExportController extends BaseController {
 | 
	
		
			
				|  |  |      private MusicGroupPaymentCalenderDetailService musicGroupPaymentCalenderDetailService;
 | 
	
		
			
				|  |  |      @Autowired
 | 
	
		
			
				|  |  |      private TeacherService teacherService;
 | 
	
		
			
				|  |  | +    @Autowired
 | 
	
		
			
				|  |  | +    private MusicGroupBuildLogDao musicGroupBuildLogDao;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      @ApiOperation(value = "乐团管理--修改--缴费设置--缴费记录导出")
 | 
	
		
			
				|  |  |      @PostMapping("export/musicGroupPaymentCalenderDetail")
 | 
	
	
		
			
				|  | @@ -111,7 +113,7 @@ public class ExportController extends BaseController {
 | 
	
		
			
				|  |  |          OutputStream outputStream = response.getOutputStream();
 | 
	
		
			
				|  |  |          try {
 | 
	
		
			
				|  |  |              HSSFWorkbook workbook = POIUtil.exportExcel(new String[]{"学员编号", "学员姓名", "学员声部", "学员状态", "手机号", "预计缴费金额",
 | 
	
		
			
				|  |  | -                    "缴费开始日期","缴费截止日期","是否开启缴费","缴费状态","支付时间"}, new String[]{
 | 
	
		
			
				|  |  | +                    "缴费开始日期", "缴费截止日期", "是否开启缴费", "缴费状态", "支付时间"}, new String[]{
 | 
	
		
			
				|  |  |                      "userId", "sysUser.username", "studentRegistration.subjectName", "studentRegistration.musicGroupStatus.msg", "sysUser.phone", "expectAmount",
 | 
	
		
			
				|  |  |                      "startPaymentDateMgpc", "deadlinePaymentDateMgpc", "openFlag.msg", "paymentStatus.desc", "payTime"}, rows);
 | 
	
		
			
				|  |  |              response.setContentType("application/octet-stream");
 | 
	
	
		
			
				|  | @@ -476,23 +478,23 @@ public class ExportController extends BaseController {
 | 
	
		
			
				|  |  |          if (rows != null && rows.size() > 0) {
 | 
	
		
			
				|  |  |              rows.forEach(e -> {
 | 
	
		
			
				|  |  |                  e.setSubClassTimes(e.getTotalClassTimes() == null ? 0 : e.getTotalClassTimes() - (e.getCurrentClassTimes() == null ? 0 : e.getCurrentClassTimes()));
 | 
	
		
			
				|  |  | -                if(e.getBuyMonths() == null || e.getBuyMonths() == 0){
 | 
	
		
			
				|  |  | +                if (e.getBuyMonths() == null || e.getBuyMonths() == 0) {
 | 
	
		
			
				|  |  |                      e.setPayStatus("免费");
 | 
	
		
			
				|  |  | -                }else {
 | 
	
		
			
				|  |  | -                    if(e.getBeRenewGroupId() == null || e.getBeRenewGroupId() == 0l){
 | 
	
		
			
				|  |  | +                } else {
 | 
	
		
			
				|  |  | +                    if (e.getBeRenewGroupId() == null || e.getBeRenewGroupId() == 0l) {
 | 
	
		
			
				|  |  |                          e.setPayStatus("首充");
 | 
	
		
			
				|  |  | -                    }else {
 | 
	
		
			
				|  |  | +                    } else {
 | 
	
		
			
				|  |  |                          e.setPayStatus("续费");
 | 
	
		
			
				|  |  |                      }
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  |              });
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |          try {
 | 
	
		
			
				|  |  | -            HSSFWorkbook workbook = POIUtil.exportExcel(new String[]{ "课程组编号","课程组名称", "课程组类型","分部", "教务老师", "指导老师", "班级人数",
 | 
	
		
			
				|  |  | +            HSSFWorkbook workbook = POIUtil.exportExcel(new String[]{"课程组编号", "课程组名称", "课程组类型", "分部", "教务老师", "指导老师", "班级人数",
 | 
	
		
			
				|  |  |                      "当前课次", "总课次", "剩余课次", "开课时间", "结束时间", "课程组状态", "是否续费", "备注"}, new String[]{
 | 
	
		
			
				|  |  | -                    "id","name","type.msg","organName", "educationalTeacherName", "teacherName", "studentNum","currentClassTimes",
 | 
	
		
			
				|  |  | +                    "id", "name", "type.msg", "organName", "educationalTeacherName", "teacherName", "studentNum", "currentClassTimes",
 | 
	
		
			
				|  |  |                      "totalClassTimes", "subClassTimes", "coursesStartDate", "coursesExpireDate",
 | 
	
		
			
				|  |  | -                    "groupStatus.desc","payStatus","memo"}, rows);
 | 
	
		
			
				|  |  | +                    "groupStatus.desc", "payStatus", "memo"}, rows);
 | 
	
		
			
				|  |  |              response.setContentType("application/octet-stream");
 | 
	
		
			
				|  |  |              response.setHeader("Content-Disposition", "attachment;filename=lender-" + DateUtil.getDate(new Date()) + ".xls");
 | 
	
		
			
				|  |  |              response.flushBuffer();
 | 
	
	
		
			
				|  | @@ -716,8 +718,8 @@ public class ExportController extends BaseController {
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |          OutputStream outputStream = response.getOutputStream();
 | 
	
		
			
				|  |  |          try {
 | 
	
		
			
				|  |  | -            HSSFWorkbook workbook = POIUtil.exportExcel(new String[]{"分部", "乐团", "学员编号", "学员姓名","声部", "购买商品", "乐器采购方式", "乐器金额", "教辅金额", "课程金额", "订单总价"}, new String[]{
 | 
	
		
			
				|  |  | -                    "organName", "musicGroupName", "userId", "username","subjectName", "goodsNames", "kitGroupPurchaseTypeEnum.msg", "musicalAmount", "accessoriesAmount", "courseAmount", "orderAmount"}, musicalList);
 | 
	
		
			
				|  |  | +            HSSFWorkbook workbook = POIUtil.exportExcel(new String[]{"分部", "乐团", "学员编号", "学员姓名", "声部", "购买商品", "乐器采购方式", "乐器金额", "教辅金额", "课程金额", "订单总价"}, new String[]{
 | 
	
		
			
				|  |  | +                    "organName", "musicGroupName", "userId", "username", "subjectName", "goodsNames", "kitGroupPurchaseTypeEnum.msg", "musicalAmount", "accessoriesAmount", "courseAmount", "orderAmount"}, musicalList);
 | 
	
		
			
				|  |  |              response.setContentType("application/octet-stream");
 | 
	
		
			
				|  |  |              response.setHeader("Content-Disposition", "attachment;filename=lender-" + DateUtil.getDate(new Date()) + ".xls");
 | 
	
		
			
				|  |  |              response.flushBuffer();
 | 
	
	
		
			
				|  | @@ -865,7 +867,7 @@ public class ExportController extends BaseController {
 | 
	
		
			
				|  |  |                          courseFee = courseFee.add(orderDetail.getPrice());
 | 
	
		
			
				|  |  |                      } else if (orderDetail.getType().equals(OrderDetailTypeEnum.ACCESSORIES) || orderDetail.getType().equals(OrderDetailTypeEnum.TEACHING) || orderDetail.getType().equals(OrderDetailTypeEnum.OTHER)) {
 | 
	
		
			
				|  |  |                          teachingFee = teachingFee.add(orderDetail.getPrice());
 | 
	
		
			
				|  |  | -                    }else if (orderDetail.getType().equals(OrderDetailTypeEnum.HIGH_ONLINE_COURSE)) {
 | 
	
		
			
				|  |  | +                    } else if (orderDetail.getType().equals(OrderDetailTypeEnum.HIGH_ONLINE_COURSE)) {
 | 
	
		
			
				|  |  |                          highOnlineCourseFee = highOnlineCourseFee.add(orderDetail.getPrice());
 | 
	
		
			
				|  |  |                      }
 | 
	
		
			
				|  |  |                  }
 | 
	
	
		
			
				|  | @@ -954,9 +956,9 @@ public class ExportController extends BaseController {
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          try {
 | 
	
		
			
				|  |  |              String[] header = {"序号", "学生姓名", "交易流水号", "订单编号", "收款渠道", "收款账户", "应付金额", "现金支付", "余额支付", "到账时间",
 | 
	
		
			
				|  |  | -                    "关联乐团ID/VIP课ID", "课程形态", "课程费用","新生专享课程费用", "乐器减免费用","课程减免费用", "押金", "乐器", "教辅费用", "零星收款费用", "零星收款类别", "手续费", "专业", "分部", "单位/学校", "合作机构", "备注"};
 | 
	
		
			
				|  |  | +                    "关联乐团ID/VIP课ID", "课程形态", "课程费用", "新生专享课程费用", "乐器减免费用", "课程减免费用", "押金", "乐器", "教辅费用", "零星收款费用", "零星收款类别", "手续费", "专业", "分部", "单位/学校", "合作机构", "备注"};
 | 
	
		
			
				|  |  |              String[] body = {"id", "user.username", "transNo", "orderNo", "paymentChannel", "merNos", "expectAmount", "actualAmount", "balancePaymentAmount", "payTime", "musicGroupId",
 | 
	
		
			
				|  |  | -                    "groupType.desc", "courseFee","highOnlineCourseFee", "remitFee","courseRemitFee", "leaseFee", "musicalFee", "teachingFee", "sporadicAmount", "sporadicType", "transferFee", "subjectName", "organName", "schoolName", "cooperationOrganName", "memo"};
 | 
	
		
			
				|  |  | +                    "groupType.desc", "courseFee", "highOnlineCourseFee", "remitFee", "courseRemitFee", "leaseFee", "musicalFee", "teachingFee", "sporadicAmount", "sporadicType", "transferFee", "subjectName", "organName", "schoolName", "cooperationOrganName", "memo"};
 | 
	
		
			
				|  |  |              HSSFWorkbook workbook = POIUtil.exportExcel(header, body, studentPaymentOrderExportDtos);
 | 
	
		
			
				|  |  |              response.setContentType("application/octet-stream");
 | 
	
		
			
				|  |  |              response.setHeader("Content-Disposition", "attachment;filename=lender-" + DateUtil.getDate(new Date()) + ".xls");
 | 
	
	
		
			
				|  | @@ -1781,16 +1783,20 @@ public class ExportController extends BaseController {
 | 
	
		
			
				|  |  |          List<MusicGroupRegisterDto> musicGroupRegisterOrders = musicGroupDao.getMusicGroupRegisterOrder(musicGroupIds);
 | 
	
		
			
				|  |  |          List<MusicGroupRegisterDto> musicGroupRegisterTotalMoneys = musicGroupDao.getMusicGroupRegisterTotalMoney(musicGroupIds);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +        List<MusicGroupBuildLog> musicGroupAuditSuccess = musicGroupBuildLogDao.getMusicGroupAuditSuccess(musicGroupIds);
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |          HashSet<Integer> added = new HashSet<>();
 | 
	
		
			
				|  |  |          List<String> header = new ArrayList<>();
 | 
	
		
			
				|  |  |          header.add("分部");
 | 
	
		
			
				|  |  |          header.add("乐团名称");
 | 
	
		
			
				|  |  |          header.add("乐团状态");
 | 
	
		
			
				|  |  | +        header.add("审核通过时间");
 | 
	
		
			
				|  |  |          header.add("报名总数");
 | 
	
		
			
				|  |  |          List<String> body = new ArrayList<>();
 | 
	
		
			
				|  |  |          body.add("organName");
 | 
	
		
			
				|  |  |          body.add("musicGroupName");
 | 
	
		
			
				|  |  |          body.add("musicGroupStatus");
 | 
	
		
			
				|  |  | +        body.add("auditSuccessTime");
 | 
	
		
			
				|  |  |          body.add("registerNum");
 | 
	
		
			
				|  |  |          for (RegisterSubjectDto registerSubject : registerSubjects) {
 | 
	
		
			
				|  |  |              if (!added.contains(registerSubject.getSubjectId())) {
 | 
	
	
		
			
				|  | @@ -1838,6 +1844,10 @@ public class ExportController extends BaseController {
 | 
	
		
			
				|  |  |                      musicGroupRegisterMap.put("subject" + registerSubject.getSubjectId(), 0);
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  | +            for (MusicGroupBuildLog groupAuditSuccess : musicGroupAuditSuccess) {
 | 
	
		
			
				|  |  | +                if (groupAuditSuccess.getMusicGroupId() != musicGroupRegister.getMusicGroupId()) continue;
 | 
	
		
			
				|  |  | +                musicGroupRegisterMap.put("auditSuccessTime", groupAuditSuccess.getCreateTime());
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  |              musicGroupRegisterMap.put("groupBuyMusicalNum", musicGroupRegister.getGroupBuyMusicalNum());
 | 
	
		
			
				|  |  |              musicGroupRegisterMap.put("registerPayNum", registerPayNum);
 | 
	
		
			
				|  |  |              musicGroupRegisterMap.put("totalMoney", musicGroupRegister.getTotalMoney());
 | 
	
	
		
			
				|  | @@ -2231,7 +2241,7 @@ public class ExportController extends BaseController {
 | 
	
		
			
				|  |  |          if (practiceGroupIds.size() > 0) {
 | 
	
		
			
				|  |  |              practiceGroupsTeacher = practiceGroupDao.getPracticeGroupByIds(practiceGroupIds);
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  | -        if(studentIds.size() > 0){
 | 
	
		
			
				|  |  | +        if (studentIds.size() > 0) {
 | 
	
		
			
				|  |  |              studentTeachers = studentDao.getStudentTeacher(studentIds);
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |  
 |