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

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

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 Gongdc
 * @since 2021-08-19
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("freight_receiving_dispatching_car")
public class FreightReceivingDispatchingCar extends BaseModel<FreightReceivingDispatchingCar> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(type = IdType.UUID)
    private String id;
    /**
     * 公司id
     */
    private String compId;
    /**
     * 派车编号
     */
    private String tranCarNo;
    /**
     * 车号
     */
    private String carNo;
    /**
     * 发货日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date dispatchingDate;
    /**
     * 净重发（吨）
     */
    private Float reciveNetWeight;
    /**
     * 净重收（吨）
     */
    private Float dispatchNetWeight;
    /**
     * 货款应付金额
     */
    private Float goodsIngPayable;
    /**
     * 货款已付金额
     */
    private Float goodsEdPayable;
    /**
     * 运费应付金额
     */
    private Float freightIngPayable;
    /**
     * 运费已付金额
     */
    private Float freightEdPayable;
    /**
     * 运费扣款金额
     */
    private Float freightDeductionAmount;
    /**
     * 货款扣款金额
     */
    private Float goodsDeductionAmount;
    /**
     * 毛重发（吨）
     */
    private Float grossWeight;
    /**
     * 皮重发（吨）
     */
    private Float tare;
    /**
     * 毛重收（吨）
     */
    private Float reciveGrossWeight;
    /**
     * 皮重收（吨）
     */
    private Float reciveTare;
    /**
     * 磅单截图发
     */
    private String collectionScreenshot;
    /**
     * 磅单截图收
     */
    private String reciveCollectionScreenshot;
    /**
     * 状态标识
     */
    private String statusFlag;
    /**
     * 状态
     */
    private String status;
    /**
     * 批次号
     */
    private String batch;
    /**
     * 本次付款
     */
    @TableField(exist = false)
    private Float money;
    /**
     * flag(0扣运费1付运费)
     */
    @TableField(exist = false)
    private String flag;



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

}
