package com.iformall.domain.po;

import cn.afterturn.easypoi.excel.annotation.Excel;
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;

@TableName(value = "wx_coupon_password")
@Data
@EqualsAndHashCode(callSuper = true)
public class WxCouponPassword extends BaseEntity {

	@Excel(name = "ID", width = 20, orderNum = "1")
    protected Long id;
	
	@io.swagger.annotations.ApiModelProperty(value="租户ID",name="tenantId")
	private String tenantId;
	@io.swagger.annotations.ApiModelProperty(value="卡券ID",name="couponId")
	private Long couponId;
	@io.swagger.annotations.ApiModelProperty(value="卡券短ID",name="couponShort")
	private String couponShort;
	@Excel(name = "兑换码", width = 20, orderNum = "2")
	@io.swagger.annotations.ApiModelProperty(value="商户名称",name="password")
	private String password;
	@Excel(name = "状态", width = 20, replace = {"初始_0", "发送中_1", "已发出_2", "已使用_3", "不可用_4"}, orderNum = "4")
	@io.swagger.annotations.ApiModelProperty(value="卡密状态: 0初始1信息发出中2信息已发出3已使用4已过期",name="status")
	private Integer status;
	@Excel(name = "发送手机", width = 20, orderNum = "5")
	@io.swagger.annotations.ApiModelProperty(value="卡密发送到手机",name="sendedPhone")
	private String sendedPhone;
	@Excel(name = "会员卡号", width = 20, orderNum = "6")
	@io.swagger.annotations.ApiModelProperty(value="卡包ID(coupon_order_id/card_id)",name="cardId")
	private Long cardId;
	@io.swagger.annotations.ApiModelProperty(value="创建时间",name="createDate")
	private Date createDate;
	@io.swagger.annotations.ApiModelProperty(value="更新时间",name="updateDate")
	private Date updateDate;
	@Excel(name="过期时间",width = 20,format="yyyy-MM-dd", orderNum = "3")
	@io.swagger.annotations.ApiModelProperty(value="过期时间",name="expireDate")
	private Date expireDate;

	@io.swagger.annotations.ApiModelProperty(value = "发放ID", name = "presentId")
	private Long presentId;

	@TableField(exist = false)
	private String statusStr;

}
