“mitao”
2026-03-27 cde5977f64ff1dfa928d1076c059e8865c02d70b
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
package com.tcm.training.admin.points.entity;
 
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
 
import java.time.LocalDateTime;
 
@TableName("tcm_points_ledger")
@Getter
@Setter
@NoArgsConstructor
public class PointsLedger {
 
    @TableId(type = IdType.AUTO)
    private Long id;
 
    @TableField("app_user_id")
    private Long appUserId;
 
    @TableField("user_nickname")
    private String userNickname;
 
    @TableField("user_phone")
    private String userPhone;
 
    @TableField("clinic_id")
    private Long clinicId;
 
    @TableField("clinic_name")
    private String clinicName;
 
    @TableField("province_code")
    private String provinceCode;
 
    @TableField("province_name")
    private String provinceName;
 
    @TableField("city_code")
    private String cityCode;
 
    @TableField("city_name")
    private String cityName;
 
    @TableField("district_code")
    private String districtCode;
 
    @TableField("district_name")
    private String districtName;
 
    /** 收支类型:INCOME/EXPENSE */
    @TableField("income_expense_type")
    private String incomeExpenseType;
 
    /** 业务类型:LIVE_WATCH/POINTS_EXCHANGE */
    @TableField("business_type")
    private String businessType;
 
    @TableField("content_name")
    private String contentName;
 
    /** 引用类型:LIVE_COURSE/EXCHANGE_ITEM */
    @TableField("reference_type")
    private String referenceType;
 
    @TableField("reference_id")
    private Long referenceId;
 
    @TableField("reference_no")
    private String referenceNo;
 
    @TableField("points_delta")
    private Integer pointsDelta;
 
    @TableField("operated_at")
    private LocalDateTime operatedAt;
 
    @TableField("source_type")
    private String sourceType;
 
    @TableField("source_id")
    private Long sourceId;
 
    @TableLogic
    private Integer deleted;
 
    @TableField(value = "created_by", fill = FieldFill.INSERT)
    private String createdBy;
 
    @TableField(value = "updated_by", fill = FieldFill.INSERT_UPDATE)
    private String updatedBy;
 
    @TableField("created_at")
    private LocalDateTime createdAt;
 
    @TableField("updated_at")
    private LocalDateTime updatedAt;
}