|
@@ -25,6 +25,7 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.http.HttpStatus;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
+import java.time.LocalDate;
|
|
|
import java.time.LocalTime;
|
|
|
import java.time.format.DateTimeFormatter;
|
|
|
import java.util.*;
|
|
@@ -113,7 +114,13 @@ public class EduPracticeGroupController extends BaseController {
|
|
|
Map<Integer, List<String>> weekNumApplyTimesMap = (Map<Integer, List<String>>) payPracticeTeacherFreeTimes.get("teacherFreeDays");
|
|
|
for (Map.Entry<Integer, List<String>> weekNumApplyTimesMapEntry : weekNumApplyTimesMap.entrySet()) {
|
|
|
DateTimeFormatter dtf = DateTimeFormatter.ofPattern("HH:mm:ss");
|
|
|
- for (String timeStr : weekNumApplyTimesMapEntry.getValue()) {
|
|
|
+ Iterator<String> iterator = weekNumApplyTimesMapEntry.getValue().iterator();
|
|
|
+ while (iterator.hasNext()){
|
|
|
+ String timeStr = iterator.next();
|
|
|
+ if("23:30:00".equals(timeStr)){
|
|
|
+ weekNumApplyTimesMapEntry.getValue().remove(timeStr);
|
|
|
+ continue;
|
|
|
+ }
|
|
|
LocalTime time = LocalTime.parse(timeStr, dtf);
|
|
|
LocalTime nextTime = time.plusMinutes(30);
|
|
|
if(weekNumApplyTimesMapEntry.getValue().contains(nextTime.format(DateUtil.timeFormatter))){
|