package com.ruoyi.system.domain;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.GeneratedValue;

/**
 * margin对象 pos_margin
 * 
 * @author ruoyi
 * @date 2023-08-02
 */
@Data
@TableName(value = "pos_margin")
@EqualsAndHashCode(callSuper = false)
public class PosMargin
{
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    @GeneratedValue
    /** id */
    private Long id;

    /** 保证金类型（0商户，1骑手） */
    @Excel(name = "保证金类型", readConverterExp = "0=商户，1骑手")
    private Long type;

    /** 金额 */
    @Excel(name = "金额")
    private Integer amount;

    /** 保证金说明 */
    @Excel(name = "保证金说明")
    private String illustrate;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setType(Long type) 
    {
        this.type = type;
    }

    public Long getType() 
    {
        return type;
    }
    public void setAmount(Integer amount)
    {
        this.amount = amount;
    }

    public Integer getAmount()
    {
        return amount;
    }
    public void setIllustrate(String illustrate) 
    {
        this.illustrate = illustrate;
    }

    public String getIllustrate() 
    {
        return illustrate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("type", getType())
            .append("amount", getAmount())
            .append("illustrate", getIllustrate())
            .toString();
    }
}
