fix
This commit is contained in:
@@ -22,7 +22,7 @@
|
|||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="getRegionLineCalendarsEvent" resultMap="BaseResultMap">
|
<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>
|
||||||
|
|
||||||
<select id="getOccupiedCount" resultType="integer">
|
<select id="getOccupiedCount" resultType="integer">
|
||||||
|
|||||||
@@ -88,6 +88,9 @@ public class AppointmentTimeVO {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static boolean isOverlapping(LocalDateTime start1, LocalDateTime end1, LocalDateTime start2, LocalDateTime end2) {
|
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)) {
|
if (start2.isAfter(start1) && start2.isBefore(end1)) {
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
@@ -416,7 +416,7 @@ public class LineInterviewServiceImpl extends LineFlowService implements LineInt
|
|||||||
updateInterviewInfo.setAuditId(auditId);
|
updateInterviewInfo.setAuditId(auditId);
|
||||||
updateInterviewInfo.setInterviewStatus(InterviewStatusEnum.NOT_PASS.getCode());
|
updateInterviewInfo.setInterviewStatus(InterviewStatusEnum.NOT_PASS.getCode());
|
||||||
lineInfoDAO.updateWorkflowStage(lineInfo.getId(), null, WorkflowSubStageStatusEnum.getInterviewRejectStatus(interviewType));
|
lineInfoDAO.updateWorkflowStage(lineInfo.getId(), null, WorkflowSubStageStatusEnum.getInterviewRejectStatus(interviewType));
|
||||||
return lineInterviewDAO.updateInterviewInfo(interviewInfo) > 0;
|
return lineInterviewDAO.updateInterviewInfo(updateInterviewInfo) > 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user