package thyyxxk.webserver.service.outpatient.thmz;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * (ZdVisitTypeNew)身份表
 *
 * @author lihong
 * @since 2024-01-12 09:36:35
 */
@SuppressWarnings("serial")
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName("zd_visit_type_new")
public class ZdVisitTypeNew {

    @TableId(type = IdType.AUTO)
    private Integer id;
    /**
     * 身份名称
     */
    private String name;
    /**
     * 有效开始时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startDate;
    /**
     * 有效截止时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endDate;
    /**
     * 删除标识 0 启用 1删除
     */
    private Integer delFlag;

    @TableField(exist = false)
    private String patientId;
    @TableField(exist = false)
    private String opId;
    @TableField(exist = false)
    private Date opDate;
}

