package com.yh.saas.plugin.yiliangyiyun.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.annotations.Version;

import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.yh.saas.common.support.entity.BaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 送货信息
 * </p>
 *
 * @author Gdc
 * @since 2021-11-27
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("shipping_information")
public class ShippingInformation extends BaseModel<ShippingInformation> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(type = IdType.UUID)
    private String id;
    /**
     * 公司id
     */
    private String compId;
    /**
     * 送粮登记id
     */
    private String grainId;
    /**
     * identityId
     */
    private String identityId;
    /**
     * 货主名
     */
    private String shipperName;
    /**
     * 货主名
     */
    private String shipperPhone;
    /**
     * 供应商
     */
    private String supplier;
    /**
     * 车牌号
     */
    private String carNo;
    /**
     * 未提交过的车牌号
     */
    private String notCarNo;
    /**
     * 身份证号码
     */
    private String customerNumberCard;
    /**
     * 有效期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @TableField(exist = false)
    private Date validityDate;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
