package com.ruoyi.web.work.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;
/**
 * @author lsw
 * @date 2024-07-18
 */
@Data
@TableName(value = "tb_follow_record")
@Accessors(chain = true)
public class FollowRecord{
    private static final long serialVersionUID = 1L;

    private Long id;

    @ApiModelProperty(value = "模板名称")
    private String templateName;

    @ApiModelProperty(value = "回访内容")
    private String op;

    @ApiModelProperty(value = "状态:0=未回访,1=已回访")
    private Integer state;

    @TableField(fill = FieldFill.INSERT)
    private String createBy;

    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @TableField(fill = FieldFill.UPDATE)
    private String updateBy;

    @TableField(fill = FieldFill.UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    @ApiModelProperty(value = "患者id")
    private Long patientId;

    @ApiModelProperty(value = "患者id")
    @TableField(fill = FieldFill.INSERT)
    private Long userId;

    @ApiModelProperty(value = "科室ID")
    @TableField(fill = FieldFill.INSERT)
    private Long deptId;


}
