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

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY;
import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
import static cn.iocoder.yudao.framework.common.util.date.DateUtils.TIME_ZONE_DEFAULT;

@Schema(description = "管理后台 - 危险物品登记 Response VO")
@Data
public class ElderlyDangerMaterialRegisterRespVO {

    @Schema(description = "id", example = "1")
    private Long id;

    @Schema(description = "长者id", example = "1")
    private Long elderId;

    @Schema(description = "长者姓名")
    private String elderName;

    @Schema(description = "楼栋id", example = "1")
    private Long buildId;

    @Schema(description = "楼栋名称")
    private String buildName;

    @Schema(description = "楼层id", example = "1")
    private Long floorId;

    @Schema(description = "楼层名称")
    private String floorName;

    @Schema(description = "登记人")
    private String assessor;

    @Schema(description = "登记日期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY)
    @JsonFormat(pattern = FORMAT_YEAR_MONTH_DAY, timezone = TIME_ZONE_DEFAULT)
    private LocalDate assessDate;

    @Schema(description = "登记数据")
    private String assessData;

    @Schema(description = "档案号")
    private String fileNumber;

    @Schema(description = "入院日期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    @JsonFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND, timezone = TIME_ZONE_DEFAULT)
    private Date checkInTime;

    @Schema(description = "床位号")
    private String bedName;

    @Schema(description = "机构id", example = "1")
    private Long tenantId;

    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @Schema(description = "更新时间")
    private LocalDateTime updateTime;

    @Schema(description = "创建人")
    private String creator;

    @Schema(description = "更新人")
    private String updater;
}

