From fdbf09b4120558114e45134322aadb6a8d4bffc8 Mon Sep 17 00:00:00 2001 From: eight <641137800@qq.com> Date: 星期五, 08 十一月 2024 18:46:10 +0800 Subject: [PATCH] update --- jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/service/appointment/AppointmentServiceImpl.java | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/service/appointment/AppointmentServiceImpl.java b/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/service/appointment/AppointmentServiceImpl.java index 45cad56..3dedf51 100644 --- a/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/service/appointment/AppointmentServiceImpl.java +++ b/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/service/appointment/AppointmentServiceImpl.java @@ -211,6 +211,10 @@ if (null == appointment) throw exception(PATIENT_NOT_EXISTS); + if (confirmReqVO.getIsVip() == 1) { + appointment.setBookDate( LocalDate.now() ); + } + if ( !DateUtils.isToday(appointment.getBookDate()) ) throw exception( APPOINTMENT_NOT_TODAY); -- Gitblit v1.9.3