From 57569f51b379c187b7659a454eddabb0b08e34c9 Mon Sep 17 00:00:00 2001
From: eight <641137800@qq.com>
Date: 星期一, 04 十一月 2024 16:19:33 +0800
Subject: [PATCH] 对接平台接口

---
 jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/controller/admin/appointment/AppointmentController.java |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/controller/admin/appointment/AppointmentController.java b/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/controller/admin/appointment/AppointmentController.java
index 012c5e6..fa03b89 100644
--- a/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/controller/admin/appointment/AppointmentController.java
+++ b/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/controller/admin/appointment/AppointmentController.java
@@ -113,10 +113,10 @@
     @Parameter(name = "id", description = "缂栧彿", required = true, example = "1024")
     @PreAuthorize("@ss.hasPermission('ecg:appointment:query')")
     public CommonResult<AppointmentRespVO> queryHisByPatient(@RequestParam("patId") String patId) {
-        AppointmentDO appointment = appointmentService.getAppointmentExtermal( patId );
-        if ( null == appointment)
+        List<AppointmentDO> appointmentList = appointmentService.getAppointmentExtermal( patId );
+        if ( 0 == appointmentList.size() )
             return error(APPOINTMENT_NOT_BILLING);
-        return success(BeanUtils.toBean(appointment, AppointmentRespVO.class));
+        return success(BeanUtils.toBean(appointmentList.get(0), AppointmentRespVO.class));
     }
 
     @GetMapping("/page")

--
Gitblit v1.9.3