This commit is contained in:
zhangchenbiao
2024-04-10 10:47:55 +08:00
parent 4ebf5c184a
commit 56244691ad
3 changed files with 5 additions and 2 deletions

View File

@@ -22,7 +22,7 @@
</select>
<select id="getRegionLineCalendarsEvent" resultMap="BaseResultMap">
select start_time, end_time from xfsg_line_calendars_event where interview_date = #{interviewDate} and region_id = #{regionId} and interview_type = '1'
select start_time, end_time from xfsg_line_calendars_event where interview_date = #{interviewDate} and region_id = #{regionId} and interview_type != '0' and start_time > now()
</select>
<select id="getOccupiedCount" resultType="integer">

View File

@@ -88,6 +88,9 @@ public class AppointmentTimeVO {
}
public static boolean isOverlapping(LocalDateTime start1, LocalDateTime end1, LocalDateTime start2, LocalDateTime end2) {
if(start1.equals(start2) && end1.equals(end2)){
return true;
}
// 如果第二个时间段的开始时间在第一个时间段内(包括两端点)
if (start2.isAfter(start1) && start2.isBefore(end1)) {
return true;

View File

@@ -416,7 +416,7 @@ public class LineInterviewServiceImpl extends LineFlowService implements LineInt
updateInterviewInfo.setAuditId(auditId);
updateInterviewInfo.setInterviewStatus(InterviewStatusEnum.NOT_PASS.getCode());
lineInfoDAO.updateWorkflowStage(lineInfo.getId(), null, WorkflowSubStageStatusEnum.getInterviewRejectStatus(interviewType));
return lineInterviewDAO.updateInterviewInfo(interviewInfo) > 0;
return lineInterviewDAO.updateInterviewInfo(updateInterviewInfo) > 0;
}
@Override