1
dd
2025-11-06 1e0848427a1f5c771b61a2939af3ff78b9b1d37b
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
package com.ruoyi.system.domain;
 
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import org.omg.PortableInterceptor.ACTIVE;
 
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;
 
/**
 * 用户保单实体类
 */
@Data
public class UserPolicy {
 
    // 保单唯一ID
    @TableId(type = IdType.AUTO)
    private Integer id;
 
    // 系统生成的用户ID
    private Integer userId;
 
    // 账号(唯一)
    private String account;
 
    // 保险产品ID
    private Integer productId;
 
    // 产品名称
    private String productName;
 
    // 保额
    private BigDecimal coverageAmount;
 
    // 保费
    private BigDecimal premium;
 
    // 保险期限(如:1天/终身)
    private Integer term;
 
    //可领取天数
    private Integer numberDays;
 
    // 姓名
    private String name;
 
    // 性别
    private Gender gender;
 
    // 出生日期
    private LocalDate birthDate;
 
    // 职业
    private String occupation;
 
    // 身份证号码
    private String idCard;
 
    // 手机号码
    private String phone;
 
    // 保单号
    private String policyNumber;
 
    // 保单状态
    private PolicyStatus policyStatus;
 
    // 保险开始日期
    private LocalDate startDate;
 
    // 保险结束日期
    private LocalDate endDate;
 
    // 领取失效日期
    private LocalDate insuranceBenefitExpiryDate;
    // 是否终身保险 0:是  1:否
    private Integer isLifelong ;
 
    // 创建时间
    private Date createdAt;
 
    // 更新时间
    private Date updatedAt;
 
    //审批状态  0:待审批  1:通过 2:驳回
    private Integer approvalStatus;
 
    //驳回信息
    private String message;
 
    //支付状态,0=拉取失败,1=待支付,2已支付,3超时/过期
    private Integer payStatus;
 
    //支付订单号
    private String orderNo;
 
    //支付失败原因getProduct
    private String payMsg;
 
    //支付方式  1 支付宝 2微信  3余额
    private Integer modePayment;
 
    // 性别枚举 M:男  F:女  OTHER:其他
    public enum Gender {
        M, F, OTHER
    }
 
    //ACTIVE:生效中  PENDING:待生效  EXPIRED:已过期  CANCELLED:已取消
    public enum PolicyStatus {
        ACTIVE, PENDING, EXPIRED, CANCELLED
    }
}