From f77fbfc8c07881f5239ce49b0dc78faaec3628b0 Mon Sep 17 00:00:00 2001 From: eight <641137800@qq.com> Date: 星期二, 10 十二月 2024 12:09:24 +0800 Subject: [PATCH] Fix Bug: 无预约时间的在预约表会有多条记录 --- jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/service/appointment/AppointmentService.java | 33 ++++++++++++++++++++++++++------- 1 files changed, 26 insertions(+), 7 deletions(-) diff --git a/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/service/appointment/AppointmentService.java b/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/service/appointment/AppointmentService.java index b2b19a1..3543317 100644 --- a/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/service/appointment/AppointmentService.java +++ b/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/service/appointment/AppointmentService.java @@ -1,11 +1,11 @@ package cn.lihu.jh.module.ecg.service.appointment; -import java.util.*; -import jakarta.validation.*; import cn.lihu.jh.module.ecg.controller.admin.appointment.vo.*; import cn.lihu.jh.module.ecg.dal.dataobject.appointment.AppointmentDO; import cn.lihu.jh.framework.common.pojo.PageResult; -import cn.lihu.jh.framework.common.pojo.PageParam; + +import javax.validation.Valid; +import java.util.List; /** * 棰勭害 Service 鎺ュ彛 @@ -20,7 +20,7 @@ * @param createReqVO 鍒涘缓淇℃伅 * @return 缂栧彿 */ - Integer createAppointment(@Valid AppointmentSaveReqVO createReqVO); + Long createAppointment(@Valid AppointmentSaveReqVO createReqVO); /** * 鏇存柊棰勭害 @@ -34,7 +34,7 @@ * * @param id 缂栧彿 */ - void deleteAppointment(Integer id); + void deleteAppointment(Long id); /** * 鑾峰緱棰勭害 @@ -42,7 +42,23 @@ * @param id 缂栧彿 * @return 棰勭害 */ - AppointmentDO getAppointment(Integer id); + AppointmentDO getAppointment(Long id); + + /** + * 鑾峰緱褰撳ぉ鐨勯绾� 鏍规嵁PatID and CheckType + * + * @param patId 缂栧彿 + * @return 棰勭害 + */ + AppointmentDO getCurAppointmentByPatIdAndCheckType(String patId, Integer checkType); + + /** + * 鑾峰緱棰勭害 + * + * @param patId 缂栧彿 + * @return 棰勭害 + */ + List<AppointmentDO> queryAndCreateAppointmentByPatId(String patCode); /** * 鑾峰緱棰勭害鍒嗛〉 @@ -52,4 +68,7 @@ */ PageResult<AppointmentDO> getAppointmentPage(AppointmentPageReqVO pageReqVO); -} \ No newline at end of file + List<AppointmentDO> getAppointmentExtermal(String patId); + + Integer appoitmentConfirm(AppointmentConfirmReqVO appointmentConfirmReqVO); +} -- Gitblit v1.9.3