From 28e699e3e1886ff4f08590857aaf08a62567c3f3 Mon Sep 17 00:00:00 2001 From: eight <641137800@qq.com> Date: 星期四, 07 十一月 2024 09:54:15 +0800 Subject: [PATCH] 新增 queue_sequence 表操作代码 --- 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