package cn.iocoder.yudao.module.system.controller.admin.reservation.vo;

import cn.iocoder.yudao.module.system.dal.dataobject.reservation.VisitRegistrationDO;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import java.util.Date;

import com.alibaba.excel.annotation.*;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.*;

@Schema(description = "管理后台 - 长者来访预约 Response VO")
@Data
@ExcelIgnoreUnannotated
public class AppointmentRespVO {

    @Schema(description = "主键ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1904")
    @ExcelProperty("主键ID")
    private Long id;

    @Schema(description = "预约目的")
    @ExcelProperty("预约目的")
    private Integer appointmentPurpose;

    @Schema(description = "预约人")
    @ExcelProperty("预约人")
    private String appointedBy;

    @Schema(description = "预约日期")
    @ExcelProperty("预约日期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY)
    @JsonFormat(pattern = FORMAT_YEAR_MONTH_DAY, timezone = TIME_ZONE_DEFAULT)
    private Date appointmentDate;

    @Schema(description = "预约形式")
    @ExcelProperty("预约形式")
    private Integer appointmentForm;

    @Schema(description = "预约人性别")
    @ExcelProperty("预约人性别")
    private Integer gender;

    @Schema(description = "预约人联系方式")
    @ExcelProperty("预约人联系方式")
    private String phone;

    @Schema(description = "预约说明")
    @ExcelProperty("预约说明")
    private String appointmentInstructions;

    @Schema(description = "关系")
    @ExcelProperty("关系")
    private Integer relation;

    @Schema(description = "床位ID", example = "7873")
    @ExcelProperty("床位ID")
    private Long bedId;

    @Schema(description = "长者Id")
    private Long elderId;

    @Schema(description = "长者名称", example = "张三")
    @ExcelProperty("长者名称")
    private String elderName;

    @Schema(description = "状态,0：待接待 1：已接待 2：已关闭", example = "1")
    @ExcelProperty("状态,0：待接待 1：已接待 2：已关闭")
    private Integer status;

    @Schema(description = "证件号码")
    @ExcelProperty("证件号码")
    private String idNumber;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

    @Schema(description = "系统类型", example = "1")
    @ExcelProperty("系统类型")
    private Integer orgType;

    @Schema(description = "销售人员")
    @ExcelProperty("销售人员")
    private String salesperson;

    @Schema(description = "来源渠道")
    @ExcelProperty("来源渠道")
    private Integer sourceChannel;

    @Schema(description = "来访信息")
    private VisitRegistrationDO visitRegistration;

    @Schema(description = "床位名称")
    private String fullBedName;

    @Schema(description = "租户名称")
    private String tenantName;

    private Long tenantId;
}