工作台待处理预约面试人数不再-1

This commit is contained in:
feng.li
2023-11-10 11:03:08 +08:00
parent 0e623604e4
commit 081c0944b2

View File

@@ -174,10 +174,8 @@ public class HyPartnerInterviewPlanServiceImpl implements HyPartnerInterviewPlan
if (CommonConstants.PENDING.equals(type)) {
//设置对应时间段的被预约情况
HyPartnerInterviewBookSituation bookSituation = orderSituationMap.getOrDefault(partnerInterviewInfoVO.getStartTime().replace("/", "-"), new HyPartnerInterviewBookSituation(0, Boolean.FALSE));
Integer appointmentCount = bookSituation.getBookingCount();
//预约人数需要减去自己
appointmentCount = appointmentCount == 0 ? appointmentCount : appointmentCount - 1;
partnerInterviewInfoVO.setAppointmentCount(appointmentCount);
//预约人数
partnerInterviewInfoVO.setAppointmentCount(bookSituation.getBookingCount());
//是否被预约
partnerInterviewInfoVO.setBooked(bookSituation.getBooked());
}