package com.hzs.common.domain.system.config;

import com.baomidou.mybatisplus.annotation.KeySequence;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.hzs.common.core.web.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

/**
 * 分红配置
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("BD_SHARE")
@KeySequence("BD_SHARE_SEQ")
public class BdShare extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId("PK_ID")
    private Integer pkId;

    /**
     * 月份
     */
    @TableField("MONTH")
    private String month;

    /**
     * 期末总额
     */
    @TableField("TOTAL_AMOUNT")
    private BigDecimal totalAmount;

    /**
     * 本月新增
     */
    @TableField("ADD_AMOUNT")
    private BigDecimal addAmount;

    /**
     * 本月发放
     */
    @TableField("USED_AMOUNT")
    private BigDecimal usedAmount;

    /**
     * 本月结余
     */
    @TableField("BALANCE_AMOUNT")
    private BigDecimal balanceAmount;

    /**
     * 当月标杆
     */
    @TableField("BASE_AMOUNT")
    private BigDecimal baseAmount;

    /**
     * 是否发放
     */
    @TableField("IS_GRANT")
    private Integer isGrant;


}
