From 583a22c4243c1fcfe7fb035d322e8803662aa71a Mon Sep 17 00:00:00 2001 From: eight <641137800@qq.com> Date: 星期一, 04 十一月 2024 16:57:14 +0800 Subject: [PATCH] update --- jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/service/appointment/AppointmentService.java | 2 +- jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/service/appointment/AppointmentServiceImpl.java | 14 +++++++++----- 2 files changed, 10 insertions(+), 6 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 34a0345..06a5461 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 @@ -58,7 +58,7 @@ * @param patId 缂栧彿 * @return 棰勭害 */ - AppointmentDO queryAndCreateAppointmentByPatId(String patId); + AppointmentDO queryAndCreateAppointmentByPatId(String patCode); /** * 鑾峰緱棰勭害鍒嗛〉 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 4be3618..8c4c396 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 @@ -103,16 +103,20 @@ return 0 == appointmentDOList.size() ? null : appointmentDOList.get(0); } - // TODO 灏氫笉鏀寔, 涓�浣嶆偅鑰呭綋澶╀袱绉嶆鏌ラ」鐩殑鎯呭喌 + /** + * // TODO 灏氫笉鏀寔, 涓�浣嶆偅鑰呭綋澶╀袱绉嶆鏌ラ」鐩殑鎯呭喌 + * @param patCode 缂栧彿 : !!! 涓嶄竴瀹氬氨鏄湰绯荤粺鐨� 鎮h�呯紪鍙�(patID), 鏍规簮鍦ㄤ簬 妫�鏌ュ崟鎵弿鍑烘潵鐨勭紪鍙� 涓嶄竴瀹氭槸 鏈郴缁熺殑 鎮h�呯紪鍙�(patID) + * @return + */ @Override - public AppointmentDO queryAndCreateAppointmentByPatId(String patId) { + public AppointmentDO queryAndCreateAppointmentByPatId(String patCode) { // 鍏堜粠鍖婚櫌骞冲彴鏌ヨ - List<AppointmentDO> appointmentExtermalList = getAppointmentExtermal( patId ); + List<AppointmentDO> appointmentExtermalList = getAppointmentExtermal( patCode ); for ( int appointmentIndex = 0; appointmentIndex < appointmentExtermalList.size(); appointmentIndex++ ) { AppointmentDO appointmentExtermal = appointmentExtermalList.get(appointmentIndex); if (null != appointmentExtermal && null != appointmentExtermal.getBookDate() && appointmentExtermal.getBookDate().isEqual(LocalDate.now())) { // 鏌ュ埌褰撳ぉ鐨勯绾﹀悗锛屾煡璇B涓� 鏄惁宸茬粡瀛樺湪 - AppointmentDO appointmentDO = appointmentMapper.getCurrentByPatAndCheckType(patId, appointmentExtermal.getBookCheckType()); + AppointmentDO appointmentDO = appointmentMapper.getCurrentByPatAndCheckType(appointmentExtermal.getPatId(), appointmentExtermal.getBookCheckType()); if (null == appointmentDO) { appointmentMapper.insert(appointmentExtermal); return appointmentExtermal; @@ -121,7 +125,7 @@ } } - List<AppointmentDO> appointmentDOList = appointmentMapper.getCurrentPatId( patId ); + List<AppointmentDO> appointmentDOList = appointmentMapper.getCurrentPatId( patCode ); return 0 == appointmentDOList.size() ? null : appointmentDOList.get(0); } -- Gitblit v1.9.3