Browse Source

1、陪练课调整
2、付费陪练课

Joburgess 5 years ago
parent
commit
597596d5b6

+ 5 - 0
mec-biz/src/main/java/com/ym/mec/biz/service/impl/PracticeGroupServiceImpl.java

@@ -2542,6 +2542,11 @@ public class PracticeGroupServiceImpl extends BaseServiceImpl<Long, PracticeGrou
         LocalDateTime applyEndDateTime = LocalDateTime.ofInstant(applyEndDate.toInstant(), DateUtil.zoneId);
         int applyEndDateWeekNum = applyEndDateTime.get(weekFields.weekOfYear());
 
+        if(!CollectionUtils.isEmpty(disableApplyWeekNum)&&!disableApplyWeekNum.contains(applyStartDateWeekNum)&&!disableApplyWeekNum.contains(applyEndDateWeekNum)){
+            result.put("teacherFreeDays", new HashMap<>());
+            return result;
+        }
+
         if(disableApplyWeekNum.contains(applyStartDateWeekNum)){
             LocalDateTime applyStartSunDay = applyStartDateTime.with(DateUtil.weekFields.dayOfWeek(), DayOfWeek.SUNDAY.getValue());
             while (applyStartDateTime.compareTo(applyStartSunDay)<=0){