package com.ruoyi.frequency.platformrecord.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.vo.UserInfo;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 平台流水记录对象 t_platform_record
 * 
 * @author liwenlong
 * @date 2023-12-01
 */
@Data
@Accessors(chain = true)
@TableName("t_platform_record")
public class PlatformRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;


    @ApiModelProperty("主键id")
    private Long id;

    @ApiModelProperty("删除标志 1正常 删除 3 禁用")
    private Integer delFlag;

    @ApiModelProperty("数值")
    @Excel(name = "数值")
    private BigDecimal price;

    @ApiModelProperty("主体id")
    @Excel(name = "主体id")
    private Long objectId;

    @ApiModelProperty("来源类型")
    @Excel(name = "来源类型")
    private Integer objectType;

    @ApiModelProperty("交易用户")
    @Excel(name = "交易用户")
    private Long userId;

    @ApiModelProperty("交易用户类型")
    @Excel(name = "交易用户类型")
    private Integer userType;

    @ApiModelProperty("余额")
    @Excel(name = "余额")
    private BigDecimal balance;

    @ApiModelProperty("入账前余额")
    @Excel(name = "入账前余额")
    private BigDecimal beforeBalance;

    @ApiModelProperty("用户信息")
    @TableField(exist = false)
    private UserInfo userInfo;

    @ApiModelProperty("类型")
    private String objectTypeName;

    @ApiModelProperty("类型")
    @TableField(exist = false)
    private Integer type;

    @ApiModelProperty("开始时间")
    @TableField(exist = false)
    private Date beginTime;

    @ApiModelProperty("结束时间")
    @TableField(exist = false)
    private Date endTime;
}
