|
|
@ -489,7 +489,7 @@ public class IcPartyServiceCenterServiceImpl extends BaseServiceImpl<IcPartyServ |
|
|
|
list.forEach(l -> timeList.stream().filter( t -> l.equals(t.getTimeId())).forEach(t -> time.add(t.getTime()))); |
|
|
|
r.setAppointmentTime(time); |
|
|
|
String endTime = time.get(time.size() - NumConstant.ONE).substring(6, 11); |
|
|
|
if (LocalDateTime.now().isBefore(LocalDateTime.parse(r.getAppointmentDate() + "T" + endTime))){ |
|
|
|
if (LocalDateTime.now().isAfter(LocalDateTime.parse(r.getAppointmentDate() + "T" + endTime))){ |
|
|
|
r.setIsCancel(false); |
|
|
|
} |
|
|
|
}); |
|
|
@ -551,7 +551,7 @@ public class IcPartyServiceCenterServiceImpl extends BaseServiceImpl<IcPartyServ |
|
|
|
list.forEach(l -> timeList.stream().filter( t -> l.equals(t.getTimeId())).forEach(t -> time.add(t.getTime()))); |
|
|
|
r.setAppointmentTime(time); |
|
|
|
String endTime = time.get(time.size() - NumConstant.ONE).substring(6, 11); |
|
|
|
if (LocalDateTime.now().isBefore(LocalDateTime.parse(r.getAppointmentDate() + "T" + endTime))){ |
|
|
|
if (LocalDateTime.now().isAfter(LocalDateTime.parse(r.getAppointmentDate() + "T" + endTime))){ |
|
|
|
r.setIsCancel(false); |
|
|
|
} |
|
|
|
} |
|
|
|