PointUserLog.java 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. package com.ylx.point.domain;
  2. import java.math.BigDecimal;
  3. import java.util.Date;
  4. import com.fasterxml.jackson.annotation.JsonFormat;
  5. import com.ylx.common.core.domain.BaseEntity;
  6. import lombok.Data;
  7. import lombok.EqualsAndHashCode;
  8. import org.apache.commons.lang3.builder.ToStringBuilder;
  9. import org.apache.commons.lang3.builder.ToStringStyle;
  10. import com.ylx.common.annotation.Excel;
  11. /**
  12. * 用户积分流水对象 point_user_log
  13. *
  14. * @author wzj
  15. * @date 2026-03-25
  16. */
  17. @EqualsAndHashCode(callSuper = true)
  18. @Data
  19. public class PointUserLog extends BaseEntity {
  20. private static final long serialVersionUID = -383943846291022514L;
  21. /**
  22. * $column.columnComment
  23. */
  24. private Long id;
  25. /**
  26. * 用户ID
  27. */
  28. @Excel(name = "用户的openID")
  29. private String openId;
  30. /**
  31. * 活动ID
  32. */
  33. @Excel(name = "活动ID")
  34. private Long activityId;
  35. /**
  36. * 活动名称
  37. */
  38. @Excel(name = "活动名称")
  39. private String activityName;
  40. /**
  41. * 任务ID
  42. */
  43. @Excel(name = "任务ID")
  44. private Long taskId;
  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. * 该笔获得记录是否已完全核销/过期
  78. */
  79. @Excel(name = "该笔获得记录是否已完全核销/过期")
  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. }