666
whywhyo
2023-07-16 2039385fa4b4ac688907134ee7c7025fb2aea1fb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
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 String id;
    //    @ExcelProperty({"个人数据","姓名"})
    @Excel(name = "个人姓名",headerBackgroundColor = IndexedColors.YELLOW)
    private String name;
    @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({"个人信息","户籍地址"})
    @Excel(name = "个人户籍地址",headerBackgroundColor = IndexedColors.YELLOW)
    private String address;
    //    @ExcelProperty({"个人信息","工作地址"})
    @Excel(name = "个人身份证",headerBackgroundColor = IndexedColors.YELLOW)
    private String idNo;
    //    @ExcelProperty(value = {"个人信息","婚姻状况"},converter = BearStatusConverter.class)
    @Excel(name = "个人婚姻状况", readConverterExp = "0=未婚,1=初婚,2=离婚,3=再婚",headerBackgroundColor = IndexedColors.YELLOW)
    private Integer marryStatus;
    //    @ExcelProperty(value = {"个人信息","性别"})
    @Excel(name = "个人性别", readConverterExp = "0=女,1=男",headerBackgroundColor = IndexedColors.YELLOW)
    private Integer sex;
    //    @ExcelProperty(value = {"个人信息","民族"})
    @Excel(name = "个人民族",headerBackgroundColor = IndexedColors.YELLOW)
    private String nation;
    //    @ExcelProperty(value = {"个人信息","手机号码"})
    @Excel(name = "个人电话号码",headerBackgroundColor = IndexedColors.YELLOW)
    private String phone;
 
    //配偶的数据
    private String spouseId;
    //    @ExcelProperty(value = {"配偶信息","姓名"})
    @Excel(name = "配偶姓名",headerBackgroundColor = IndexedColors.GREEN)
    private String spouseName;
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
//    @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 spouseAddress;
    //    @ExcelProperty(value = {"配偶信息","工作地址"})
    @Excel(name = "配偶身份证",headerBackgroundColor = IndexedColors.GREEN)
    private String spouseIdNo;
    //    @ExcelProperty(value = {"配偶信息","婚姻状况"},converter = BearStatusConverter.class)
    @Excel(name = "配偶婚姻状况", readConverterExp = "0=未婚,1=初婚,2=离婚,3=再婚",headerBackgroundColor = IndexedColors.GREEN)
    private Integer spouseMarryStatus;
    //    @ExcelProperty(value = {"配偶信息","性别"})
    @Excel(name = "配偶性别", readConverterExp = "0=女,1=男",headerBackgroundColor = IndexedColors.GREEN)
    private Integer spouseSex;
    //    @ExcelProperty(value = {"配偶信息","民族"})
    @Excel(name = "配偶民族",headerBackgroundColor = IndexedColors.GREEN)
    private String spouseNation;
    @Excel(name = "配偶手机号码",headerBackgroundColor = IndexedColors.GREEN)
    private String spousePhone;
 
 
    //生育情况(中间表)
    private Long marryId;
    /**
     * 结婚时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @Excel(name = "结婚时间", dateFormat = "yyyy-MM-dd")
    private Date marryTime;
 
    /**
     * 生育情况,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 content;
    @Excel(name = "备注")
    private String remark;
 
    /**
     * 前任信息的List
     */
    @Excel(name = "前任信息",headerBackgroundColor= IndexedColors.RED)
    private List<MarryUser> oldSpouseList;
 
}