package com.matrix.system.score.entity;
|
|
import com.matrix.core.anotations.Extend;
|
import com.baomidou.mybatisplus.annotation.TableName;
|
|
import lombok.Data;
|
|
import java.util.Date;
|
|
/**
|
* @description 客户积分余额
|
* @author jyy
|
* @date 2021-02-26 15:26
|
*/
|
@Data
|
@TableName("score_vip_detail")
|
public class ScoreVipDetail extends BaseEntity{
|
@Extend
|
private static final long serialVersionUID = 1L;
|
|
/**
|
* 获取类型(1:现金消费)
|
*/
|
public static final int SCORE_VIP_TYPE_CASH=1;
|
|
|
/**
|
* 获取类型(2:赠送等)
|
*/
|
public static final int SCORE_VIP_TYPE_CONSUME=2;
|
/**
|
* 获取类型(3推荐客户)
|
*/
|
public static final int SCORE_VIP_TYPE_REFERRER=3;
|
|
/** 有效*/
|
public static final int SCORE_STATUS_YX=1;
|
/** 无效*/
|
public static final int SCORE_STATUS_WX=2;
|
|
|
|
/**
|
* 用户openId
|
*/
|
private String openId;
|
|
/**
|
* erp用户Id
|
*/
|
private Long vipId;
|
|
|
/**
|
* 获取类型(1:现金消费2:赠送等)
|
*/
|
|
|
private Integer type;
|
|
/**
|
* 积分总数
|
*/
|
|
|
private Integer allScore;
|
|
/**
|
* 已使用积分
|
*/
|
|
|
private Integer usedScore;
|
|
/**
|
* 剩余积分
|
*/
|
|
|
private Integer remainScore;
|
|
/**
|
* 获取时间
|
*/
|
|
|
private Date gainTime;
|
|
/**
|
* 到期时间
|
*/
|
|
|
private Date validiteTime;
|
|
/**
|
* 有效状态(1:有效 2:无效)
|
*/
|
|
|
private Integer state;
|
|
/**
|
* 原始单据ID
|
*/
|
|
|
private Long businessId;
|
|
/**
|
* 所属公司_id
|
*/
|
|
|
private Long companyId;
|
|
|
|
|
}
|