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;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * freight对象 pos_freight
 * 
 * @author ruoyi
 * @date 2023-07-15
 */
@Data
@TableName(value = "pos_freight")
@EqualsAndHashCode(callSuper = false)
public class PosFreight
{
    private static final long serialVersionUID = 1L;

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

    /** 开始时间 */
    @Excel(name = "开始时间")
    private String startTime;

    /** 结束时间 */
    @Excel(name = "结束时间")
    private String endTime;

    /** 运费 */
    @Excel(name = "跳表运费")
    private Long freight;

    /** 距离 */
    @Excel(name = "跳表距离")
    private Long distance;
    /** 起运价格 */
    @Excel(name = "起运价格")
    private Long startingFare;
    /** 起运距离 */
    @Excel(name = "起运距离")
    private Long startingDistance;

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

    public Long getId() 
    {
        return id;
    }
    public void setStartTime(String startTime) 
    {
        this.startTime = startTime;
    }

    public String getStartTime() 
    {
        return startTime;
    }
    public void setEndTime(String endTime) 
    {
        this.endTime = endTime;
    }

    public String getEndTime() 
    {
        return endTime;
    }
    public void setFreight(Long freight)
    {
        this.freight = freight;
    }

    public Long getFreight()
    {
        return freight;
    }
    public void setDistance(Long distance) 
    {
        this.distance = distance;
    }

    public Long getDistance() 
    {
        return distance;
    }

    public Long getStartingFare() {
        return startingFare;
    }

    public void setStartingFare(Long startingFare) {
        this.startingFare = startingFare;
    }

    public Long getStartingDistance() {
        return startingDistance;
    }

    public void setStartingDistance(Long startingDistance) {
        this.startingDistance = startingDistance;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("freight", getFreight())
            .append("distance", getDistance())
            .append("startingFare", getStartingFare())
            .append("startingDistance", getStartingDistance())
            .toString();
    }
}
