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

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * @Author: jinyd
 * @CreateTime: 2024/8/13  9:11
 * @Description:
 * @Version: 4.0
 */

@Schema(description = "管理后台 - 长者退住申请记录 Response VO")
@Data
@ExcelIgnoreUnannotated
public class ElderlyRetreatRecordRespVO {

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

    @Schema(description = "长者id", example = "14373")
    @ExcelProperty("长者id")
    private Long elderlyId;

    @Schema(description = "退住日期", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("退住日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate retreatDate;

    @Schema(description = "费用截止日期")
    @ExcelProperty("费用截止日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate costDeadlineDate;

    @Schema(description = "退住原因", requiredMode = Schema.RequiredMode.REQUIRED, example = "不对")
    @ExcelProperty("退住原因")
    private String reason;

    @Schema(description = "退住描述", requiredMode = Schema.RequiredMode.REQUIRED, example = "随便")
    @ExcelProperty("退住描述")
    private String description;

    @Schema(description = "审批状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @ExcelProperty("审批状态")
    private Integer status;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDateTime createTime;

    @Schema(description = "长者名称", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("长者名称")
    private String elderName;

    @Schema(description = "床位号", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("床位号")
    private String bedName;

    @Schema(description = "入住日期")
    @ExcelProperty("入住日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate checkInTime;


}
