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

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.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-06
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("collection_management")
public class CollectionManagement extends BaseModel<CollectionManagement> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(type = IdType.UUID)
    private String id;
    /**
     * 公司id
     */
    private String compId;
    /**
     * 计划表id
     */
    private String planId;
    /**
     * 合同编号
     */
    private String contractNo;
    /**
     * 货名key
     */
    private String goodsNameKey;
    /**
     * 货名
     */
    private String goodsName;
    /**
     * 买方
     */
    private String buyer;
    /**
     * 卖方
     */
    private String seller;
    /**
     * 应收(元)
     */
    private Float collectionIngPayable;
    /**
     * 已收(元)
     */
    private Float collectionEdPayable;
    /**
     * 未收(元)
     */
    private Float collectionNotPayable;
    /**
     * 未开发票(元)
     */
    private Float notInvoice;
    /**
     * 已开发票(元)
     */
    private Float alreadyInvoice;
    /**
     * 出库量(吨)
     */
    private Float outWeight;
    /**
     * 贷款
     */
    private Float loan;
    /**
     * 运费
     */
    private Float freight;
    /**
     * 仓储费
     */
    private Float storageFee;
    /**
     * 利息
     */
    private Float interest;
    /**
     * 附件地址
     */
    private String addressUrl;
    /**
     * 状态标识
     */
    private String statusFlag;
    /**
     * 状态
     */
    private String status;
    /**
     * 状态英文
     */
    private String statusEn;
    /**
     * 车牌号
     */
    @TableField(exist = false)
    private String carNo;
    /**
     * 箱号
     */
    @TableField(exist = false)
    private String boxNo;
    /**
     * 封号
     */
    @TableField(exist = false)
    private String titleNo;
    /**
     * 派车编号
     */
    @TableField(exist = false)
    private String tranCarNo;
    /**
     * 库管
     */
    @TableField(exist = false)
    private String agent;
    /**
     * 库管Id
     */
    @TableField(exist = false)
    private String staffId;

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

    /**
     * 模糊查询
     */
    @TableField(exist = false)
    private String searchKeyWord;
    @TableField(exist = false)
    private List<CollectionManagement> collectionManagementList;


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

}
