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.annotation.Transaction;
import com.hzs.common.core.constant.EnumsPrefixConstants;
import com.hzs.common.core.web.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

/**
 * <p>
 *  云代配置

 * </p>
 *
 * @author zhangjing
 * @since 2022-11-01
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("BD_BONUS_CLOUD")
@KeySequence("BD_BONUS_CLOUD_SEQ")
public class BdBonusCloud extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @TableId("PK_ID")
    private Integer pkId;

    /**
     * 收益类型
     */
    @TableField("CLOUD_TYPE")
    @Transaction(transactionKey = EnumsPrefixConstants.CLOUD_TYPE)
    private Integer cloudType;

    /**
     * 收益比例
     */
    @TableField("CLOUD_RATIO")
    private BigDecimal cloudRatio;


}
