package com.ruoyi.user.domain;
|
|
import java.util.Date;
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
|
/**
|
* 会员收益流水 account_earning_record
|
*
|
* 一条记录代表一次收益事件;个人中心「今日 / 本月 / 累计收益」由本表按时间实时聚合得出,
|
* 无需在 account_user 上维护需要定时归零的汇总字段。
|
*
|
* @author hugray
|
*/
|
public class AccountEarningRecord
|
{
|
/** 收益记录ID */
|
private Long recordId;
|
|
/** 会员ID(关联 account_user.user_id) */
|
private Long userId;
|
|
/** 收益金额(单位:分,可正可负,负数表示扣减) */
|
private Long amount;
|
|
/** 收益来源(1订单收益 2邀请奖励 3等级差价 9其他,见 EarningSourceEnum) */
|
private String source;
|
|
/** 业务单号(同来源幂等去重,可为空) */
|
private String bizNo;
|
|
/** 备注 */
|
private String remark;
|
|
/** 发生时间 */
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
private Date createTime;
|
|
/** 更新时间 */
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
private Date updateTime;
|
|
public Long getRecordId()
|
{
|
return recordId;
|
}
|
|
public void setRecordId(Long recordId)
|
{
|
this.recordId = recordId;
|
}
|
|
public Long getUserId()
|
{
|
return userId;
|
}
|
|
public void setUserId(Long userId)
|
{
|
this.userId = userId;
|
}
|
|
public Long getAmount()
|
{
|
return amount;
|
}
|
|
public void setAmount(Long amount)
|
{
|
this.amount = amount;
|
}
|
|
public String getSource()
|
{
|
return source;
|
}
|
|
public void setSource(String source)
|
{
|
this.source = source;
|
}
|
|
public String getBizNo()
|
{
|
return bizNo;
|
}
|
|
public void setBizNo(String bizNo)
|
{
|
this.bizNo = bizNo;
|
}
|
|
public String getRemark()
|
{
|
return remark;
|
}
|
|
public void setRemark(String remark)
|
{
|
this.remark = remark;
|
}
|
|
public Date getCreateTime()
|
{
|
return createTime;
|
}
|
|
public void setCreateTime(Date createTime)
|
{
|
this.createTime = createTime;
|
}
|
|
public Date getUpdateTime()
|
{
|
return updateTime;
|
}
|
|
public void setUpdateTime(Date updateTime)
|
{
|
this.updateTime = updateTime;
|
}
|
}
|