package com.ruoyi.domain.dto; import com.baomidou.mybatisplus.annotation.TableField; import com.fasterxml.jackson.annotation.JsonFormat; import com.ruoyi.common.annotation.Excel; import lombok.Data; import org.apache.ibatis.type.JdbcType; import java.io.Serializable; import java.util.Date; /** * @Author Jinquan_Ou * @Description 家谱 * @Date 2023-05-19 17:55 * @Version 1.0.0 **/ @Data public class Genealogy implements Serializable { private static final long serialVersionUID = 1L; private Long userId; private Integer clanId; @Excel(name = "第几代") private Integer identity; @Excel(name="姓名") private String nickName; @Excel(name="性别",readConverterExp = "0=女,1=男") private Integer sex; @JsonFormat(pattern = "yyyy-MM-dd") @Excel(name = "出生时间", dateFormat = "yyyy-MM-dd") private Date birth; @JsonFormat(pattern = "yyyy-MM-dd") @Excel(name = "全生命周期", dateFormat = "yyyy-MM-dd") private Date deadDay; @Excel(name="电话号码") private String phoneNumber; @Excel(name="所在单位/学校") private String unit; @Excel(name = "配偶") private String spouseName; @Excel(name = "是否是本家庭成员",readConverterExp = "0=否,1=是") private Integer isMyFamily; private Genealogy spouse; /** * 开始时间 生日 */ @JsonFormat(pattern = "yyyy-MM-dd") @TableField(exist = false, jdbcType = JdbcType.TIMESTAMP) private Date happenStartTime; /** * 结束时间 */ @JsonFormat(pattern = "yyyy-MM-dd") @TableField(exist = false, jdbcType = JdbcType.TIMESTAMP) private Date happenEndTime; }