eight
2024-11-04 57569f51b379c187b7659a454eddabb0b08e34c9
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")