From 35d65298bd22d6f40e0097f905be21f6afb336be Mon Sep 17 00:00:00 2001 From: eight <641137800@qq.com> Date: 星期四, 08 八月 2024 22:06:56 +0800 Subject: [PATCH] 预约确认 --- jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/controller/admin/appointment/AppointmentController.java | 11 ++++++++++- jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/controller/admin/appointment/vo/AppointmentConfirmReqVO.java | 42 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 52 insertions(+), 1 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 16c0648..8c1a4a5 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 @@ -92,4 +92,13 @@ BeanUtils.toBean(list, AppointmentRespVO.class)); } -} \ No newline at end of file + @PostMapping("/confirm") + @Operation(summary = "棰勭害纭") + @PreAuthorize("@ss.hasPermission('ecg:appointment:confirm')") + public CommonResult<String> appointmentConfirm(@RequestBody AppointmentConfirmReqVO confirmReqVO) { + //TODO 澶勭悊鎺掗槦閫昏緫 + //AppointmentDO appointment = appointmentService.getAppointment(id); + //return success(BeanUtils.toBean(appointment, AppointmentRespVO.class)); + return success("hello"); + } +} diff --git a/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/controller/admin/appointment/vo/AppointmentConfirmReqVO.java b/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/controller/admin/appointment/vo/AppointmentConfirmReqVO.java new file mode 100644 index 0000000..b68c083 --- /dev/null +++ b/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/controller/admin/appointment/vo/AppointmentConfirmReqVO.java @@ -0,0 +1,42 @@ +package cn.lihu.jh.module.ecg.controller.admin.appointment.vo; + +import io.swagger.v3.oas.annotations.media.Schema; +import lombok.Data; + +import javax.validation.constraints.NotEmpty; +import javax.validation.constraints.NotNull; +import java.time.LocalDateTime; + +@Schema(description = "绠$悊鍚庡彴 - 棰勭害纭 Request VO") +@Data +public class AppointmentConfirmReqVO { + + @Schema(description = "鎮h�呯紪鍙�", requiredMode = Schema.RequiredMode.REQUIRED, example = "29034") + //@NotEmpty(message = "鎮h�呯紪鍙蜂笉鑳戒负绌�") + private String patId; + + @Schema(description = "鎮h�呭鍚�", requiredMode = Schema.RequiredMode.REQUIRED, example = "璧靛叚") + //@NotEmpty(message = "鎮h�呭鍚嶄笉鑳戒负绌�") + private String patName; + + @Schema(description = "鎮h�呮�у埆", requiredMode = Schema.RequiredMode.REQUIRED) + //@NotNull(message = "鎮h�呮�у埆涓嶈兘涓虹┖") + private Byte patGender; + + @Schema(description = "棰勭害缂栧彿", requiredMode = Schema.RequiredMode.REQUIRED, example = "27849") + //@NotEmpty(message = "棰勭害缂栧彿涓嶈兘涓虹┖") + private String bookId; + + @Schema(description = "棰勭害鏃ユ湡", requiredMode = Schema.RequiredMode.REQUIRED) + //@NotNull(message = "棰勭害鏃ユ湡涓嶈兘涓虹┖") + private LocalDateTime bookDate; + + @Schema(description = "棰勭害鏃堕棿娈�", requiredMode = Schema.RequiredMode.REQUIRED) + //@NotNull(message = "棰勭害鏃堕棿娈典笉鑳戒负绌�") + private Integer bookTimeslot; + + @Schema(description = "棰勭害妫�鏌ョ被鍨�", requiredMode = Schema.RequiredMode.REQUIRED, example = "2") + //@NotNull(message = "棰勭害妫�鏌ョ被鍨嬩笉鑳戒负绌�") + private Byte bookCheckType; + +} \ No newline at end of file -- Gitblit v1.9.3