package com.ruoyi.ibs.list.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.List;

/**
 * 【请填写功能名称】对象 family_member
 * 
 * @author ruoyi
 * @date 2025-03-03
 */
@Data
@TableName("family_member")
public class FamilyMember extends BaseEntity
{

    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 身份证号 */
    private String idCard;

    /** 姓名 */
    @Excel(name = "姓名")
    private String name;
    private String callName;

    /** 父亲身份证 */
    @Excel(name = "父亲身份证")
    private String fatherCard;

    /** 母亲身份证 */
    @Excel(name = "母亲身份证")
    private String motherCard;

    /** 配偶身份证 */
    @Excel(name = "配偶身份证")
    private String spouseCard;

    /** 家庭id */
    @Excel(name = "家庭id")
    private String familyId;

    /** 性别，M男，F女 */
    @Excel(name = "性别，M男，F女")
    private String gender;

    /** 年龄 */
    @Excel(name = "年龄")
    private Long age;

    private String bsId;

    private String isDelete;

    /** 家庭id */
    @Excel(name = "家庭id")
    private String spouseFamilyId;

    private List<FamilyMember> children;

    private List<Member> sibling;

    private Member spouse;

    private Long level;

    private Boolean isVirtual;

    private String depositBalance;

    private String loanBalance;

    private String loanManager;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "出生日期", width = 30, dateFormat = "yyyy-MM-dd")
    private String birthDate;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("idCard", getIdCard())
            .append("name", getName())
            .append("fatherCard", getFatherCard())
            .append("motherCard", getMotherCard())
            .append("spouseCard", getSpouseCard())
            .append("familyId", getFamilyId())
            .append("gender", getGender())
            .append("age", getAge())
            .toString();
    }
}
