jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/controller/admin/appointment/AppointmentController.java
@@ -11,6 +11,7 @@ import io.swagger.v3.oas.annotations.Parameter; import io.swagger.v3.oas.annotations.Operation; import java.time.LocalDate; import java.util.*; import java.io.IOException; @@ -154,6 +155,7 @@ @PreAuthorize("@ss.hasPermission('ecg:appointment:confirm')") public CommonResult<Integer> appointmentConfirmVip(@RequestBody AppointmentConfirmReqVO confirmReqVO) { confirmReqVO.setIsVip(1); confirmReqVO.setBookDate( LocalDate.now() ); Integer newSeqNo = appointmentService.appoitmentConfirm( confirmReqVO ); return success(newSeqNo); } 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);