mitao
2025-02-21 31573d6180d15ef65ed0df9c2732495f40b12663
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
package com.panzhihua.service_dangjian.entity;
 
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
 
import java.io.Serializable;
import java.util.Date;
 
/**
 * @auther lyq
 * @create 2021-07-28 16:03:18
 * @describe 用户积分账户交易记录实体类
 */
 
@Data
@TableName("com_act_integral_user_trade")
public class ComActIntegralUserTrade implements Serializable {
 
    private static final long serialVersionUID = 1L;
 
    /**
     * 主键id
     */
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;
 
    /**
     * 用户id
     */
    private Long userId;
 
    /**
     * 积分账户id
     */
    private Long integralId;
 
    /**
     * 社区id
     */
    private Long communityId;
 
    /**
     * 交易业务id
     */
    private Long serviceId;
 
    /**
     * 交易业务类型(1.发布随手拍 2.发布微心愿 3.参与议事投票 4.社区活动-居民身份参与 " +
     *             "5.社区活动-党员身份参与 6.社区活动-志愿者身份参与 7.参与调查问卷 8.取消活动 9.参与单位党员活动)
     */
    private Integer serviceType;
 
    /**
     * 交易积分数量
     */
    private Integer amount;
 
    /**
     * 变动类型(1.增加 2.减少)
     */
    private Integer changeType;
 
    /**
     * 交易备注
     */
    private String remark;
 
    /**
     * 交易身份类型(1.居民 2.党员 3.志愿者)
     */
    private Integer identityType;
 
    /**
     * 交易时间
     */
    private Date createAt;
 
    /**
     * 操作人id
     */
    private Long createBy;
 
    @Override
    public String toString() {
        return "ComActIntegralUserTradeDO{" + "id=" + id + ", userId=" + userId + ", integralId=" + integralId
            + ", communityId=" + communityId + ", serviceId=" + serviceId + ", serviceType=" + serviceType + ", amount="
            + amount + ", changeType=" + changeType + ", remark=" + remark + ", identityType=" + identityType
            + ", createAt=" + createAt + ", createBy=" + createBy + "}";
    }
 
    /**
     * 变动类型(1.增加 2.减少)
     */
    public interface changeType {
        int add = 1;
        int reduce = 2;
    }
 
    /**
     * 交易身份类型(1.居民 2.党员 3.志愿者)
     */
    public interface identityType {
        int jm = 1;
        int dy = 2;
        int zyz = 3;
    }
}