package com.hzy.project.business.balance.domain;

import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.hzy.framework.aspectj.lang.annotation.Excel;
import com.hzy.framework.web.domain.BaseEntity;

import java.math.BigDecimal;

/**
 * 用户结余对象 m_user_balance
 * 
 * @author ruoyi
 * @date 2026-01-02
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class UserBalance extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long balanceId;

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

    /** 结余周期 */
    @Excel(name = "结余周期")
    private String duration;

    /** 期初数 */
    @Excel(name = "期初数")
    private BigDecimal openingBalance;

    /** 收入 */
    @Excel(name = "收入")
    private BigDecimal income;

    /** 支出 */
    @Excel(name = "支出")
    private BigDecimal payment;

    /** 期末数 */
    @Excel(name = "期末数")
    private BigDecimal closingBalance;

    /** 删除标志 */
    private String delFlag;

}
