package com.dsh.account.entity;
|
|
import com.baomidou.mybatisplus.annotation.IdType;
|
import com.baomidou.mybatisplus.annotation.TableField;
|
import com.baomidou.mybatisplus.annotation.TableId;
|
import com.baomidou.mybatisplus.annotation.TableName;
|
import com.dsh.account.util.UUIDUtil;
|
import lombok.Data;
|
|
import java.text.SimpleDateFormat;
|
import java.util.Date;
|
|
/**
|
* @author zhibing.pu
|
* @date 2023/6/24 9:58
|
*/
|
@Data
|
@TableName("t_vip_payment")
|
public class VipPayment {
|
/**
|
* 主键
|
*/
|
@TableId(value = "id", type = IdType.AUTO)
|
private Integer id;
|
/**
|
* 流水号
|
*/
|
@TableField("code")
|
private String code;
|
/**
|
* 用户id
|
*/
|
@TableField("appUserId")
|
private Integer appUserId;
|
/**
|
* 支付金额
|
*/
|
@TableField("amount")
|
private Double amount;
|
/**
|
* 支付方式(1=微信,2=支付宝)
|
*/
|
@TableField("payType")
|
private Integer payType;
|
/**
|
* 支付状态(1=待支付,2=已支付)
|
*/
|
@TableField("payStatus")
|
private Integer payStatus;
|
/**
|
* 支付时间
|
*/
|
@TableField("payTime")
|
private Date payTime;
|
/**
|
* 第三方流水号
|
*/
|
@TableField("orderNumber")
|
private String orderNumber;
|
/**
|
* 状态(1=正常,2=冻结,3=删除)
|
*/
|
@TableField("state")
|
private Integer state;
|
/**
|
* 添加时间
|
*/
|
@TableField("insertTime")
|
private Date insertTime;
|
|
|
public static String CODE(){
|
SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMddHHmmssSSS");
|
return sdf.format(new Date()) + UUIDUtil.getNumberRandom(3);
|
}
|
}
|