package cn.iocoder.yudao.module.system.dal.dataobject.biz;

import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseNoDeleteDO;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;

import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

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

/**
 * 离住记录 DO
 *
 * @author ruoyi
 */
@TableName("elderly_temp_out")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class ElderlyTempOutDO extends BaseNoDeleteDO {

    /**
     * id
     */
    @TableId(type = IdType.AUTO)
    private Long id;
    /**
     * 长者id
     */
    private Long elderId;
    /**
     * 床位id
     */
    private Long bedId;
    /**
     * 离住原因
     */
    private String outReason;
    /**
     * 离院时间
     */
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime outTime;
    /**
     * 离院年月
     */
    private String outMonth;
    /**
     * 返回时间
     */
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime comeTime;
    /**
     * 返回年月
     */
    private String comeMonth;
    /**
     * 离住状态,1、已离住；2、已返院
     */
    private Integer outStatus;
    /**
     * 机构id
     */
    private Long tenantId;


}

