|  | @@ -2179,6 +2179,9 @@ public class CourseScheduleTeacherSalaryServiceImpl extends BaseServiceImpl<Long
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  |                  teacherIncomeInfo.setDeductReasons(teacherSalary.getDeductReasons());
 | 
	
		
			
				|  |  |                  teacherIncomeInfo.setTeacherAttendance(teacherAttendances.get(0));
 | 
	
		
			
				|  |  | +                if(Objects.nonNull(school)&&Objects.nonNull(teacherIncomeInfo.getTeacherAttendance())){
 | 
	
		
			
				|  |  | +                    teacherIncomeInfo.getTeacherAttendance().setSchoolLongitudeLatitude(school.getLongitudeLatitude());
 | 
	
		
			
				|  |  | +                }
 | 
	
		
			
				|  |  |                  teacherIncomeInfo.setBelongToDaya(teacherSalary.getBelongToDaya());
 | 
	
		
			
				|  |  |                  dataList.add(teacherIncomeInfo);
 | 
	
		
			
				|  |  |              }
 | 
	
	
		
			
				|  | @@ -2198,6 +2201,20 @@ public class CourseScheduleTeacherSalaryServiceImpl extends BaseServiceImpl<Long
 | 
	
		
			
				|  |  |          result.put("total", BigDecimal.ZERO);
 | 
	
		
			
				|  |  |          result.put("salary", BigDecimal.ZERO);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +        LocalDate minDate = LocalDate.of(2021, 3, 1);
 | 
	
		
			
				|  |  | +        LocalDate startDate = LocalDate.of(year, Objects.isNull(month)?1:month, 1);
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +        if(year<=2021&&Objects.isNull(month)){
 | 
	
		
			
				|  |  | +            startDate = startDate.withMonth(3);
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +        if(startDate.compareTo(minDate)<0){
 | 
	
		
			
				|  |  | +            result.put("total", BigDecimal.ZERO);
 | 
	
		
			
				|  |  | +            result.put("salary", BigDecimal.ZERO);
 | 
	
		
			
				|  |  | +            result.put("data", Collections.emptyList());
 | 
	
		
			
				|  |  | +            return result;
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |          List<LocalDateBigDecimalMapDto> monthIncomeMapList = courseScheduleTeacherSalaryDao.teacherIncomeStat(teacherId, year, month);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          if(Objects.isNull(month)){
 | 
	
	
		
			
				|  | @@ -2205,8 +2222,6 @@ public class CourseScheduleTeacherSalaryServiceImpl extends BaseServiceImpl<Long
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |              LocalDate now = LocalDate.now();
 | 
	
		
			
				|  |  |              DateTimeFormatter dateFormatter = DateTimeFormatter.ofPattern("yyyy-MM");
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -            LocalDate startDate = LocalDate.of(year, Objects.isNull(month)?1:month, 1);
 | 
	
		
			
				|  |  |              while (startDate.compareTo(now)<=0&&year.equals(startDate.get(ChronoField.YEAR))){
 | 
	
		
			
				|  |  |                  String dateStr = dateFormatter.format(startDate);
 | 
	
		
			
				|  |  |                  if(!months.contains(dateStr)){
 | 
	
	
		
			
				|  | @@ -2217,7 +2232,6 @@ public class CourseScheduleTeacherSalaryServiceImpl extends BaseServiceImpl<Long
 | 
	
		
			
				|  |  |          }else{
 | 
	
		
			
				|  |  |              Set<String> dates = monthIncomeMapList.stream().map(e -> DateUtil.dateToString(e.getDate(), "yyyy-MM-dd")).collect(Collectors.toSet());
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -            LocalDate startDate = LocalDate.of(year, Objects.isNull(month)?1:month, 1);
 | 
	
		
			
				|  |  |              Integer oldMonth = Objects.isNull(month)?new Integer(1):month;
 | 
	
		
			
				|  |  |              while (oldMonth.equals(startDate.get(ChronoField.MONTH_OF_YEAR))){
 | 
	
		
			
				|  |  |                  String dateStr = DateUtil.dateFormatter.format(startDate);
 |