package com.iformall.domain.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.iformall.domain.po.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;
import java.util.List;

@TableName(value = "wx_credit_history")
@Data
@EqualsAndHashCode(callSuper = true)
public class WxCreditHistory extends BaseEntity {
	private static final long serialVersionUID = 1L;
	
    protected Long id;

    @TableField(exist = false)
	@io.swagger.annotations.ApiModelProperty(value="开始时间",name="startTime")
	private Date startTime;

	@TableField(exist = false)
	@io.swagger.annotations.ApiModelProperty(value="结束时间",name="endTime")
	private Date endTime;

	@TableField(exist = false)
	@io.swagger.annotations.ApiModelProperty(value="手机号",name="phone")
	private String phone;

	@TableField(exist = false)
	@io.swagger.annotations.ApiModelProperty(value="姓名",name="name")
	private String name;

	@TableField(exist = false)
	@io.swagger.annotations.ApiModelProperty(value="花费Str",name="spendStr")
	private String spendStr;

	@io.swagger.annotations.ApiModelProperty(value="租户ID",name="tenantId")
	private String tenantId;
	@io.swagger.annotations.ApiModelProperty(value="用户ID",name="cUserId")
	private Long cUserId;
	@io.swagger.annotations.ApiModelProperty(value="总积分",name="creditAmount")
	private Integer creditAmount;
	@io.swagger.annotations.ApiModelProperty(value="每笔积分明细",name="creditNum")
	private Integer creditNum;
    @io.swagger.annotations.ApiModelProperty(value = "积分类型 1每日登录,2消费,3绑车牌,4连接WIFI,5微信用户昵称授权,6微信用户手机授权,7完善个人信息,8积分导入,10新增积分,11积分兑换,12消费积分 13活动报名 注：11积分兑换改为走订单接口", name = "creditType")
	private Integer creditType;
	@io.swagger.annotations.ApiModelProperty(value="创建日期",name="createDate")
	private Date createDate;
	@io.swagger.annotations.ApiModelProperty(value="小票URL",name="receiptUrl")
	private String receiptUrl;
	@io.swagger.annotations.ApiModelProperty(value="操作人类型 1:C端用户,2:A端会员,3:B端用户,4:A端用户",name="operatorType")
	private Integer operatorType;
	@io.swagger.annotations.ApiModelProperty(value="操作人ID",name="operatorId")
	private Long operatorId;
	@io.swagger.annotations.ApiModelProperty(value="商户ID",name="merchantId")
	private Long merchantId;
	@io.swagger.annotations.ApiModelProperty(value="券ID（积分兑换券时生成）",name="couponId")
	private Long couponId;
	@io.swagger.annotations.ApiModelProperty(value="业态ID（计算新增积分时使用）",name="businessId")
	private Integer businessId;
	@io.swagger.annotations.ApiModelProperty(value="花费",name="spend")
	private Integer spend;
	@io.swagger.annotations.ApiModelProperty(value="兑换用途",name="changePurpose")
	private String changePurpose;

	@TableField(exist = false)
	@io.swagger.annotations.ApiModelProperty(value = "商户名称", name = "merchantName")
	private String merchantName;

	@io.swagger.annotations.ApiModelProperty(value = "小票号", name = "ticketNumber")
	private String ticketNumber;

    @io.swagger.annotations.ApiModelProperty(value = "B端微信用户", name = "buserId")
    private Long buserId;

	@io.swagger.annotations.ApiModelProperty(value = "标签", name = "tags")
	private transient List<Long> tags;

}
