This commit is contained in:
zhangchenbiao
2024-04-07 19:33:14 +08:00
parent 14947cd31d
commit 1a960a907b
3 changed files with 35 additions and 6 deletions

View File

@@ -99,7 +99,7 @@ public class LineInterviewServiceImpl extends LineFlowService implements LineInt
throw new ServiceException(ErrorCodeEnum.PARAMS_VALIDATE_ERROR);
}
List<AppointmentTimeListVO> resultList = new ArrayList<>();
while (appointmentEndDate.isAfter(appointmentStartDate)){
while (appointmentEndDate.isAfter(appointmentStartDate) || appointmentStartDate.equals(appointmentEndDate)){
List<AppointmentTimeVO> appointmentTime = getAppointmentTime(lineId, interviewType, appointmentStartDate);
AppointmentTimeListVO appointmentTimeList = new AppointmentTimeListVO(appointmentStartDate.toString(), appointmentStartDate.getDayOfWeek().getValue(), appointmentTime);
resultList.add(appointmentTimeList);