From 43e16c0697b7c546a4f5fa5b93cba663c6b6d04d Mon Sep 17 00:00:00 2001
From: eight <641137800@qq.com>
Date: 星期三, 06 十一月 2024 17:02:04 +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