|  | @@ -377,7 +377,7 @@ public class OnlineMusicGroupServiceImpl implements OnlineMusicGroupService {
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      @Override
 | 
	
		
			
				|  |  | -    public Map getTeacherFreeTimes(Integer studentId, Integer teacherId){
 | 
	
		
			
				|  |  | +    public Map getTeacherFreeTimes(Integer studentId, Integer teacherId, boolean skipHoliday){
 | 
	
		
			
				|  |  |          if (Objects.isNull(teacherId)) {
 | 
	
		
			
				|  |  |              throw new BizException("请选择教师");
 | 
	
		
			
				|  |  |          }
 | 
	
	
		
			
				|  | @@ -405,6 +405,15 @@ public class OnlineMusicGroupServiceImpl implements OnlineMusicGroupService {
 | 
	
		
			
				|  |  |              checkTeacherLeaveDate = false;
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +        Set<String> holidayDays = new HashSet<>();
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +        if (skipHoliday) {
 | 
	
		
			
				|  |  | +            SysConfig holidaySetting = sysConfigService.findByParamName(SysConfigService.HOLIDAY_SETTING);
 | 
	
		
			
				|  |  | +            if(Objects.nonNull(holidaySetting)&&StringUtils.isNotBlank(holidaySetting.getParanValue())){
 | 
	
		
			
				|  |  | +                holidayDays = new HashSet<>(JSON.parseArray(holidaySetting.getParanValue(), String.class));
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |          Set<Integer> disableApplyWeekNum = new HashSet<>();
 | 
	
		
			
				|  |  |          Set<Integer> disableApplyWeekDay = new HashSet<>();
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -566,6 +575,9 @@ public class OnlineMusicGroupServiceImpl implements OnlineMusicGroupService {
 | 
	
		
			
				|  |  |                  Map<String, List<String>> rt=new HashMap<>();
 | 
	
		
			
				|  |  |                  for (Date tempDate : tempDates) {
 | 
	
		
			
				|  |  |                      String dateStr = DateUtil.dateToString(tempDate, "yyyy-MM-dd");
 | 
	
		
			
				|  |  | +                    if(holidayDays.contains(dateStr)){
 | 
	
		
			
				|  |  | +                        continue;
 | 
	
		
			
				|  |  | +                    }
 | 
	
		
			
				|  |  |                      String timeStr = DateUtil.dateToString(tempDate, "HH:mm:ss");
 | 
	
		
			
				|  |  |                      if(!rt.containsKey(dateStr)){
 | 
	
		
			
				|  |  |                          rt.put(dateStr, new ArrayList<>());
 | 
	
	
		
			
				|  | @@ -696,6 +708,9 @@ public class OnlineMusicGroupServiceImpl implements OnlineMusicGroupService {
 | 
	
		
			
				|  |  |              Map<String, List<String>> rt=new HashMap<>();
 | 
	
		
			
				|  |  |              for (Date tempDate : tempDates) {
 | 
	
		
			
				|  |  |                  String dateStr = DateUtil.dateToString(tempDate, "yyyy-MM-dd");
 | 
	
		
			
				|  |  | +                if(holidayDays.contains(dateStr)){
 | 
	
		
			
				|  |  | +                    continue;
 | 
	
		
			
				|  |  | +                }
 | 
	
		
			
				|  |  |                  String timeStr = DateUtil.dateToString(tempDate, "HH:mm:ss");
 | 
	
		
			
				|  |  |                  if(!rt.containsKey(dateStr)){
 | 
	
		
			
				|  |  |                      rt.put(dateStr, new ArrayList<>());
 |