|  | @@ -107,6 +107,8 @@ public class ExportController extends BaseController {
 | 
	
		
			
				|  |  |      private MusicGroupBuildLogDao musicGroupBuildLogDao;
 | 
	
		
			
				|  |  |      @Autowired
 | 
	
		
			
				|  |  |      private CourseScheduleStudentPaymentDao courseScheduleStudentPaymentDao;
 | 
	
		
			
				|  |  | +    @Autowired
 | 
	
		
			
				|  |  | +    private SellOrderDao sellOrderDao;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      @ApiOperation(value = "学员考勤记录导出")
 | 
	
		
			
				|  |  |      @PostMapping("export/exportStudentAttendances")
 | 
	
	
		
			
				|  | @@ -135,7 +137,7 @@ public class ExportController extends BaseController {
 | 
	
		
			
				|  |  |          OutputStream outputStream = response.getOutputStream();
 | 
	
		
			
				|  |  |          try {
 | 
	
		
			
				|  |  |              HSSFWorkbook workbook = POIUtil.exportExcel(new String[]{"分部编号", "分部名称", "课程组类型", "课程组编号", "课程组名称", "学员姓名",
 | 
	
		
			
				|  |  | -                    "学员编号", "课程编号", "课程名称", "上课日期", "上课开始时间","上课结束时间","指导老师名称","指导老师编号","教务老师名称","教务老师编号","学员考勤状态"}, new String[]{
 | 
	
		
			
				|  |  | +                    "学员编号", "课程编号", "课程名称", "上课日期", "上课开始时间", "上课结束时间", "指导老师名称", "指导老师编号", "教务老师名称", "教务老师编号", "学员考勤状态"}, new String[]{
 | 
	
		
			
				|  |  |                      "organId", "organName", "groupType.desc", "groupId", "groupName", "username",
 | 
	
		
			
				|  |  |                      "userId", "courseScheduleId", "courseScheduleName", "classDate", "startClassTime", "endClassTime", "guideTeacherName", "guideTeacherId"
 | 
	
		
			
				|  |  |                      , "educationalTeacherName", "educationalTeacherId", "studentAttendanceStatus.msg"}, rows);
 | 
	
	
		
			
				|  | @@ -976,6 +978,15 @@ public class ExportController extends BaseController {
 | 
	
		
			
				|  |  |                  if (practiceGroup != null) {
 | 
	
		
			
				|  |  |                      row.setSubjectName(practiceGroup.getSubjectName());
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  | +            } else {
 | 
	
		
			
				|  |  | +                StudentPaymentOrderExportDto feeByType = sellOrderDao.getFeeByType(row.getId());
 | 
	
		
			
				|  |  | +                row.setMusicalFee(feeByType.getMusicalFee());
 | 
	
		
			
				|  |  | +                row.setTeachingFee(feeByType.getTeachingFee());
 | 
	
		
			
				|  |  | +                if (row.getType().equals(OrderTypeEnum.REPAIR)) {
 | 
	
		
			
				|  |  | +                    row.setRepairFee(feeByType.getExpectAmount().subtract(feeByType.getMusicalFee()).subtract(feeByType.getTeachingFee()));
 | 
	
		
			
				|  |  | +                } else if (row.getType().equals(OrderTypeEnum.OUTORDER)) {
 | 
	
		
			
				|  |  | +                    row.setCourseFee(feeByType.getExpectAmount().subtract(feeByType.getMusicalFee()).subtract(feeByType.getTeachingFee()));
 | 
	
		
			
				|  |  | +                }
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |              String paymentChannel = "";
 | 
	
		
			
				|  |  |              if (row.getPaymentChannel() == null) {
 | 
	
	
		
			
				|  | @@ -1270,7 +1281,7 @@ public class ExportController extends BaseController {
 | 
	
		
			
				|  |  |          Set<Integer> studentIds = vipGroupExports.stream().map(CourseGroupExportDto::getStudentId).collect(Collectors.toSet());
 | 
	
		
			
				|  |  |          List<Map<Integer, Date>> studentLastCourseSchedule = courseScheduleStudentPaymentDao.findStudentLastCourseSchedule(new ArrayList<>(studentIds));
 | 
	
		
			
				|  |  |          Map<Integer, String> studentLastCourseMap = new HashMap<>();
 | 
	
		
			
				|  |  | -        if(!CollectionUtils.isEmpty(studentLastCourseSchedule)){
 | 
	
		
			
				|  |  | +        if (!CollectionUtils.isEmpty(studentLastCourseSchedule)) {
 | 
	
		
			
				|  |  |              studentLastCourseMap = MapUtil.convertMybatisMap(studentLastCourseSchedule);
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |          List<CourseGroupExportDto> studentCourseInfos = courseScheduleDao.getStudentVipCourseInfo(studentIds);
 | 
	
	
		
			
				|  | @@ -1279,7 +1290,7 @@ public class ExportController extends BaseController {
 | 
	
		
			
				|  |  |          for (CourseGroupExportDto vipGroupExport : vipGroupExports) {
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |              String lastClassDateStr = studentLastCourseMap.get(vipGroupExport.getStudentId());
 | 
	
		
			
				|  |  | -            if(StringUtils.isNotBlank(lastClassDateStr)){
 | 
	
		
			
				|  |  | +            if (StringUtils.isNotBlank(lastClassDateStr)) {
 | 
	
		
			
				|  |  |                  vipGroupExport.setLastClassDate(DateUtil.stringToDate(lastClassDateStr));
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |  
 |