PointUserLog.java 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. package com.ylx.point.domain;
  2. import com.baomidou.mybatisplus.annotation.TableField;
  3. import com.fasterxml.jackson.annotation.JsonFormat;
  4. import com.ylx.common.annotation.Excel;
  5. import com.ylx.common.core.domain.BaseEntity;
  6. import lombok.Data;
  7. import lombok.EqualsAndHashCode;
  8. import java.util.Date;
  9. /**
  10. * 用户积分流水对象 point_user_log
  11. *
  12. * @author wzj
  13. * @date 2026-03-25
  14. */
  15. @EqualsAndHashCode(callSuper = true)
  16. @Data
  17. public class PointUserLog extends BaseEntity {
  18. private static final long serialVersionUID = -383943846291022514L;
  19. /**
  20. * $column.columnComment
  21. */
  22. private Long id;
  23. /**
  24. * 用户ID
  25. */
  26. @Excel(name = "用户的openID")
  27. private String openId;
  28. /**
  29. * 活动ID
  30. */
  31. @Excel(name = "活动ID")
  32. private Long activityId;
  33. /**
  34. * 活动名称
  35. */
  36. @Excel(name = "活动名称")
  37. private String activityName;
  38. /**
  39. * 任务ID
  40. */
  41. @Excel(name = "任务ID")
  42. private Long taskId;
  43. @Excel(name = "任务名称")
  44. private String taskName;
  45. /**
  46. * 1-普通任务 2-签到任务
  47. */
  48. @Excel(name = "1-普通任务 2-签到任务")
  49. private Integer taskType;
  50. /**
  51. * 积分变动值
  52. */
  53. @Excel(name = "积分变动值")
  54. private Integer points;
  55. /**
  56. * 变动后总余额 (快照)
  57. */
  58. @Excel(name = "变动后总余额 (快照)")
  59. private Integer balanceAfter;
  60. /**
  61. * 关联ID: 消耗/过期记录指向被扣减的"获得记录ID"
  62. */
  63. @Excel(name = "关联ID: 消耗/过期记录指向被扣减的获得记录ID")
  64. private Long sourceLogId;
  65. /**
  66. * 业务订单号/流水号
  67. */
  68. @Excel(name = "业务订单号/流水号")
  69. private String bizOrderId;
  70. /**
  71. * 该笔积分的过期时间 (仅获得记录有值)
  72. */
  73. @JsonFormat(pattern = "yyyy-MM-dd")
  74. @Excel(name = "该笔积分的过期时间 (仅获得记录有值)", width = 30, dateFormat = "yyyy-MM-dd")
  75. private Date expireTime;
  76. /**
  77. * 该笔获得的积分记录是否已过期 0-未过期 1-已过期
  78. */
  79. @Excel(name = "该笔获得的积分记录是否已过期 0-未过期 1-已过期")
  80. private Integer isExpired;
  81. /**
  82. * 操作类型 1-收入 2-支出 3-过期
  83. */
  84. @Excel(name = "1-收入 2-支出 3-过期")
  85. private Integer opType;
  86. /**
  87. * 年月(YYYYMM)
  88. */
  89. @Excel(name = "年月(YYYYMM)")
  90. private String month;
  91. @TableField(exist = false)
  92. private String createBy;
  93. @TableField(exist = false)
  94. private String updateBy;
  95. @TableField("create_time")
  96. private Date createTime;
  97. @TableField(exist = false)
  98. private Date updateTime;
  99. }