package com.ruoyi.domain.dto; import com.alibaba.excel.annotation.ExcelProperty; import com.alibaba.excel.annotation.format.DateTimeFormat; import com.fasterxml.jackson.annotation.JsonFormat; import com.ruoyi.common.annotation.Excel; import com.ruoyi.converter.BearStatusConverter; import com.ruoyi.domain.MarryUser; import lombok.Data; import org.apache.poi.ss.usermodel.IndexedColors; import java.io.Serializable; import java.util.Date; import java.util.List; /** * @Author Jinquan_Ou * @Description * @Date 2023-04-23 14:04 * @Version 1.0.0 **/ @Data public class MarryInfoDto implements Serializable { private static final long serialVersionUID = 1L; //我个人的数据 private Long id; // @ExcelProperty({"个人数据","姓名"}) @Excel(name = "个人姓名",headerBackgroundColor = IndexedColors.YELLOW) private String name; // @ExcelProperty(value = {"个人信息","性别"}) @Excel(name = "个人性别",headerBackgroundColor = IndexedColors.YELLOW) private String sex; @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") // @ExcelProperty({"个人信息","生日"}) // @DateTimeFormat("yyyy-MM-dd") @Excel(name = "个人生日", dateFormat = "yyyy-MM-dd",headerBackgroundColor = IndexedColors.YELLOW) private Date birthday; // @ExcelProperty(value = {"个人信息","民族"}) @Excel(name = "个人民族",headerBackgroundColor = IndexedColors.YELLOW) private String nation; @Excel(name = "个人身份证",headerBackgroundColor = IndexedColors.YELLOW) private String idNo; // @ExcelProperty(value = {"个人信息","手机号码"}) @Excel(name = "个人电话号码",headerBackgroundColor = IndexedColors.YELLOW) private String phone; // @ExcelProperty(value = {"个人信息","婚姻状况"},converter = BearStatusConverter.class) @Excel(name = "个人婚姻状况", readConverterExp = "0=未婚,1=初婚,2=离婚,3=再婚",headerBackgroundColor = IndexedColors.YELLOW) private Integer marryStatus; @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") @Excel(name = "结婚时间", dateFormat = "yyyy-MM-dd",headerBackgroundColor = IndexedColors.YELLOW) private Date marryTime; // @ExcelProperty({"个人信息","户籍地址"}) @Excel(name = "个人户籍地址",headerBackgroundColor = IndexedColors.YELLOW) private String address; @Excel(name = "配偶姓名") private String spouseName; @Excel(name = "配偶性别") private String spouseSex; @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") @Excel(name = "配偶生日", dateFormat = "yyyy-MM-dd") private Date spouseBirthday; @Excel(name = "配偶民族") private String spouseNation; @Excel(name = "配偶身份证") private String spouseIdNo; @Excel(name = "配偶手机号码") private String spousePhone; @Excel(name = "配偶婚姻状况",readConverterExp = "0=未婚,1=初婚,2=离婚,3=再婚") private Integer spouseMarryStatus; @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") @Excel(name = "配偶结婚时间", dateFormat = "yyyy-MM-dd") private Date spouseMarryTime; @Excel(name = "配偶户籍地址") private String spouseAddress; private Long uid; // //配偶的数据 // private Long spouseId; // // @ExcelProperty(value = {"配偶信息","姓名"}) // @Excel(name = "配偶姓名",headerBackgroundColor = IndexedColors.GREEN) // private String spouseName; // @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") // // // @ExcelProperty(value = {"配偶信息","性别"}) // @Excel(name = "配偶性别", readConverterExp = "0=女,1=男",headerBackgroundColor = IndexedColors.GREEN) // private Integer spouseSex; // //// @ExcelProperty(value = {"配偶信息","生日"}) //// @DateTimeFormat("yyyy-MM-dd") // @Excel(name = "配偶生日", dateFormat = "yyyy-MM-dd",headerBackgroundColor = IndexedColors.GREEN) // private Date spouseBirthday; // // // @ExcelProperty(value = {"配偶信息","民族"}) // @Excel(name = "配偶民族",headerBackgroundColor = IndexedColors.GREEN) // private String spouseNation; // // @Excel(name = "配偶身份证",headerBackgroundColor = IndexedColors.GREEN) // private String spouseIdNo; // // // @ExcelProperty(value = {"配偶信息","户籍地址"}) // @Excel(name = "配偶户籍地址",headerBackgroundColor = IndexedColors.GREEN) // private String spouseAddress; // // @Excel(name = "配偶手机号码",headerBackgroundColor = IndexedColors.GREEN) // private String spousePhone; // // // @ExcelProperty(value = {"配偶信息","工作地址"}) // // // @ExcelProperty(value = {"配偶信息","婚姻状况"},converter = BearStatusConverter.class) // @Excel(name = "配偶婚姻状况", readConverterExp = "0=未婚,1=初婚,2=离婚,3=再婚",headerBackgroundColor = IndexedColors.GREEN) // private Integer spouseMarryStatus; // // @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") // @Excel(name = "配偶结婚时间", dateFormat = "yyyy-MM-dd",headerBackgroundColor = IndexedColors.GREEN) // private Date spouseMarryTime; //生育情况 /** * 生育情况,0:未生育、1:在孕、2:已生育 */ @Excel(name = "生育情况", readConverterExp = "0=未生育,1=在孕,2=已生育") private Integer bearStatus; @Excel(name = "是否领取计划生育服务手册", readConverterExp = "0=否,1=是") private Integer handbookStatus; @Excel(name = "领取计划生育服务手册时间", dateFormat = "yyyy-MM-dd") @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") private Date handbookTime; @Excel(name = "是否领取独生子女证", readConverterExp = "0=否,1=是") private Integer oneBorn; @Excel(name = "领取独生子女证时间", dateFormat = "yyyy-MM-dd") @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") private Date oneBornTime; @Excel(name = "需声明的情况") private String notion; @Excel(name = "备注") private String remark; /** * 前任信息的List */ @Excel(name = "前任信息",headerBackgroundColor= IndexedColors.RED) private List oldSpouseList; }