package com.ruoyi.ss.recordBalance.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;

/**
 * 余额变动记录对象 ss_record_balance
 *
 * @author ruoyi
 * @date 2024-07-22
 */
@Data
public class RecordBalance extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 变动前余额（元） */
    @Excel(name = "变动前余额", readConverterExp = "元=")
    private BigDecimal beforeBalance;

    /** 变动后余额（元） */
    @Excel(name = "变动后余额", readConverterExp = "元=")
    private BigDecimal afterBalance;

    /** 变动原因 */
    @Excel(name = "变动原因")
    private String reason;

    @ApiModelProperty("变化金额")
    private BigDecimal amount;

    @ApiModelProperty("业务类型")
    private String bstType;

    @ApiModelProperty("业务ID")
    private Long bstId;
}
