From 3d10cfa8882afcfa28a7623b45232aef54fe033d Mon Sep 17 00:00:00 2001
From: eight <641137800@qq.com>
Date: 星期五, 25 十月 2024 15:51:08 +0800
Subject: [PATCH] 设备表 增加 rent_id
---
jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/service/appointment/AppointmentServiceImpl.java | 12 ++++++++++++
1 files changed, 12 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..c165a8a 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( 0 );
+
appointmentMapper.insert(appointment);
// 杩斿洖
return appointment.getId();
@@ -66,6 +73,11 @@
}
@Override
+ public AppointmentDO getAppointmentByPatId(String patId) {
+ return appointmentMapper.getByPatId( patId );
+ }
+
+ @Override
public PageResult<AppointmentDO> getAppointmentPage(AppointmentPageReqVO pageReqVO) {
return appointmentMapper.selectPage(pageReqVO);
}
--
Gitblit v1.9.3