/*
 * Copyright (c) 2018-2999 广州亚米信息科技有限公司 All rights reserved.
 *
 * https://www.gz-yami.com/
 *
 * 未经允许，不可做商业用途！
 *
 * 版权所有，侵权必究！
 */

package com.yami.shop.bean.model;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

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

@Data
@TableName("tz_transport2")
public class Transport2 implements Serializable {

    private static final long serialVersionUID = 1876655654053364580L;
    /**
     * 运费模板id
     */
    @TableId
    @ApiModelProperty(value = "运费模板id", required = true)
    private Long transportId;

    /**
     * 运费模板名称
     */

    @ApiModelProperty(value = "运费模板名称", required = true)
    private String transName;


    @ApiModelProperty(value = "重量限制", required = true)
    private Double weight;

     @ApiModelProperty(value = "费用（元/20kg）", required = true)
    private BigDecimal freightFee;

     @ApiModelProperty(value = "渠道ID", required = true)
    private Long channelId;

    /**
     * 创建时间
     */

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间", required = true)
    private Date createTime;

    /**
     * 店铺id
     */

    @ApiModelProperty(value = "店铺id", required = true)
    private Long shopId;

    @ApiModelProperty(value = "配送距离", required = true)
    private Double distance;

    @ApiModelProperty(value = "订单需要满多少", required = true)
    private Double amount;

    @ApiModelProperty(value = "配送费", required = true)
    private Double piece;

}
