1
zj
2025-09-17 2233288a99508832ee633115f2c44e05e5accfb2
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
package com.ruoyi.system.domain;
 
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
 
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;
 
/**
 * 医疗保险账户实体类
 */
@Data
public class MedicalInsuranceAccount {
 
    // 医疗保险账户ID
    @TableId(type = IdType.AUTO)
    private Integer id;
 
    // 用户ID
    private String userId;
 
    // 保单ID
    private Long policyId;
 
    // 保险产品ID
    private Integer productId;
 
    // 账户余额
    private BigDecimal accountBalance;
 
    // 年度限额
    private BigDecimal annualLimit;
 
    // 已使用金额
    private BigDecimal usedAmount;
 
    // 账户生效日期
    private LocalDate effectiveDate;
 
    // 账户失效日期
    private LocalDate expiryDate;
 
    // 账户状态
    private AccountStatus accountStatus;
 
    // 创建时间
    private LocalDateTime createdAt;
 
    // 更新时间
    private LocalDateTime updatedAt;
 
    // 账户状态枚举
    public enum AccountStatus {
        ACTIVE("生效中"),
        SUSPENDED("已暂停"),
        CLOSED("已关闭"),
        PENDING("待生效");
 
        private final String description;
 
        AccountStatus(String description) {
            this.description = description;
        }
 
        public String getDescription() {
            return description;
        }
    }
}