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

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

import java.math.BigDecimal;
import java.util.Date;

/**
 * Created with IntelliJ IDEA.
 * @author: yuhui
 * Description:
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("BD_CURRENCY")
@KeySequence("BD_CURRENCY_SEQ")
public class BdCurrency extends BaseEntity {

    private static final long serialVersionUID = 1L;

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

    /**
     * 币种名称
     */
    @TableField("NAME")
    private String name;

    /**
     * 启用状态（0=是,1=否）
     */
    @TableField("ENABLE_STATE")
    private Integer enableState;

    /**
     * 入汇率
     */
    @TableField("IN_EXCHANGE_RATE")
    private BigDecimal inExchangeRate;

    /**
     * 出汇率
     */
    @TableField("OUT_EXCHANGE_RATE")
    private BigDecimal outExchangeRate;

    /**
     * 货币符号
     */
    @TableField("SYMBOL")
    private String symbol;

    /**
     * 是否本币 来源于枚举：是否,默认是 0 是 1 否
     */
    @TableField("IS_CURRENCY")
    private String isCurrency;

    /**
     * 生效日期
     */
    @TableField("EFFECTIVE_DATE")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date effectiveDate;

    /**
     * 货币编码
     */
    @TableField("CURRENCY_CODE")
    private String currencyCode;

}
