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

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

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.yh.saas.common.support.entity.BaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 货运收发信息
 * </p>
 *
 * @author Gongdc
 * @since 2021-08-19
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("freight_receiving_dispatching")
public class FreightReceivingDispatching extends BaseModel<FreightReceivingDispatching> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(type = IdType.UUID)
    private String id;
    /**
     * 公司id
     */
    private String compId;
    /**
     * 个人id
     */
    private String commonId;
    /**
     * 业务编号
     */
    private String businessNumber;
    /**
     * 收货方
     */
    private String consignee;
    /**
     * 发货方
     */
    private String shipper;
    /**
     * 货名
     */
    private String goodsName;
    /**
     * 运费承担方
     */
    private String freightPayer;
    /**
     * 收货地址
     */
    private String receivingAddress;
    /**
     * 收货人账号
     */
    private String accountNumber;
    /**
     * 发货人手机号
     */
    private String shipperPhone;
    /**
     * 代签收
     */
    private String signedFor;
    /**
     * 待结算
     */
    private String toSettled;
    /**
     * 货物单价
     */
    private Float goodsPrice;
    /**
     * 运费单价（元/吨）
     */
    private Float freightUnitPrice;
    /**
     * 状态标识
     */
    private String statusFlag;
    /**
     * 状态
     */
    private String status;
    /**
     * 批次号
     */
    private String batch;

    /**
     * 模糊查询
     */
    @TableField(exist = false)
    private String searchKeyWord;

    /**
     * 查询类型
     */
    @TableField(exist = false)
    private String searchType;

    @TableField(exist = false)
    private List<FreightReceivingDispatchingCar> freightReceivingDispatchingCars;

    @TableField(exist = false)
    private List<ReceivingUser> receivingUsers;



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

}
