From 081c0944b274d44915203a7a9415a4590abcae94 Mon Sep 17 00:00:00 2001 From: "feng.li" Date: Fri, 10 Nov 2023 11:03:08 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=A5=E4=BD=9C=E5=8F=B0=E5=BE=85=E5=A4=84?= =?UTF-8?q?=E7=90=86=E9=A2=84=E7=BA=A6=E9=9D=A2=E8=AF=95=E4=BA=BA=E6=95=B0?= =?UTF-8?q?=E4=B8=8D=E5=86=8D-1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/HyPartnerInterviewPlanServiceImpl.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/coolstore-partner-service/src/main/java/com/cool/store/service/impl/HyPartnerInterviewPlanServiceImpl.java b/coolstore-partner-service/src/main/java/com/cool/store/service/impl/HyPartnerInterviewPlanServiceImpl.java index 804fe3185..53a1ac7db 100644 --- a/coolstore-partner-service/src/main/java/com/cool/store/service/impl/HyPartnerInterviewPlanServiceImpl.java +++ b/coolstore-partner-service/src/main/java/com/cool/store/service/impl/HyPartnerInterviewPlanServiceImpl.java @@ -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()); }