From 74bdfccc43ecc6cdb55898f48efb43aea8e9b324 Mon Sep 17 00:00:00 2001
From: eight <641137800@qq.com>
Date: 星期三, 07 八月 2024 14:24:36 +0800
Subject: [PATCH] update

---
 jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/service/appointment/AppointmentServiceImpl.java |    7 +++++++
 1 files changed, 7 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 69aeaf8..e556456 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
@@ -13,6 +13,9 @@
 
 import javax.annotation.Resource;
 
+import java.time.LocalDateTime;
+import java.util.Date;
+
 import static cn.lihu.jh.framework.common.exception.util.ServiceExceptionUtil.exception;
 import static cn.lihu.jh.module.ecg.enums.ErrorCodeConstants.*;
 
@@ -32,6 +35,10 @@
     public Integer createAppointment(AppointmentSaveReqVO createReqVO) {
         // 鎻掑叆
         AppointmentDO appointment = BeanUtils.toBean(createReqVO, AppointmentDO.class);
+
+        appointment.setBookTime( LocalDateTime.now() );
+        appointment.setBookSrc((byte)0);
+
         appointmentMapper.insert(appointment);
         // 杩斿洖
         return appointment.getId();

--
Gitblit v1.9.3