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

import java.math.BigDecimal;

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

/**
 * 专区包邮配置
 *
 * @author hzs
 * @since 2023-11-30
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@KeySequence("BD_AREA_FREE_POSTAGE_SEQ")
@TableName("BD_AREA_FREE_POSTAGE")
public class BdAreaFreePostage extends BaseEntity {

    private static final long serialVersionUID = 1L;

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

    /**
     * 所属专区（专区枚举）
     */
    @Transaction(transactionKey = EnumsPrefixConstants.SPECIAL_AREA)
    @TableField("SPECIAL_AREA")
    private Integer specialArea;

    /**
     * 所属专区显示
     */
    @TableField(exist = false)
    private String specialAreaVal;

    /**
     * 包邮金额
     */
    @TableField("FREE_AMOUNT")
    private BigDecimal freeAmount;

    /**
     * 启用状态（0是 1 否）
     */
    @Transaction(transactionKey = EnumsPrefixConstants.YES_NO)
    @TableField("ENABLE_STATE")
    private Integer enableState;

    /**
     * 启用状态显示
     */
    @TableField(exist = false)
    private String enableStateVal;

}
