eight
2024-08-08 35d65298bd22d6f40e0097f905be21f6afb336be
预约确认
已添加1个文件
已修改1个文件
53 ■■■■■ 文件已修改
jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/controller/admin/appointment/AppointmentController.java 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/controller/admin/appointment/vo/AppointmentConfirmReqVO.java 42 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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));
    }
}
    @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");
    }
}
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 = "患者编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "29034")
    //@NotEmpty(message = "患者编号不能为空")
    private String patId;
    @Schema(description = "患者姓名", requiredMode = Schema.RequiredMode.REQUIRED, example = "赵六")
    //@NotEmpty(message = "患者姓名不能为空")
    private String patName;
    @Schema(description = "患者性别", requiredMode = Schema.RequiredMode.REQUIRED)
    //@NotNull(message = "患者性别不能为空")
    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;
}