package com.hzs.common.domain.bonus;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.KeySequence;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
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;

/**
 * 服务补贴
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("BD_BONUS_SERVICE")
@KeySequence("BD_BONUS_SERVICE_SEQ")
public class BdBonusService extends BaseEntity {

    private static final long serialVersionUID = 1L;

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

    /**
     * 服务类型 对应枚举 EServiceType
     */
    @TableField("SERVICE_TYPE")
    private Integer serviceType;

    /**
     * 补贴比例
     */
    @TableField("SERVICE_RADIO")
    private BigDecimal serviceRadio;

    /**
     * 考核类型  EAssessmentType
     */
    @Transaction(transactionKey = EnumsPrefixConstants.ASSESSMENT_TYPE)
    @TableField("ASSESSMENT_TYPE")
    private Integer assessmentType;
    /**
     * 考核类型  EAssessmentType
     */
    @TableField(exist = false)
    private String assessmentTypeVal;


}
