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

import java.util.Date;
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.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-09-17
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("stock_purchase_receipt_report")
public class StockPurchaseReceiptReport extends BaseModel<StockPurchaseReceiptReport> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(type = IdType.UUID)
    private String id;
    /**
     * 公司id
     */
    private String compId;
    /**
     * 出入库记录id
     */
    private String warehouseRecordId;
    /**
     * 合同编号
     */
    private String contractNo;
    /**
     * 车牌号
     */
    private String carNo;
    /**
     * 入库日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date warehousingDate;
    /**
     * 净重（吨）
     */
    private Double netWeight;
    /**
     * 毛重（吨）
     */
    private Double grossWeight;
    /**
     * 皮重（吨）
     */
    private Double tare;
    /**
     * 扣重（吨）
     */
    private Double deductionWeight;
    /**
     * 结算重量（吨）
     */
    private Double settlementWeight;
    /**
     * 结算单价（元/吨）
     */
    private Double settlementPrice;
    /**
     * 应付金额（元/吨）
     */
    private Double amountIngPayable;
    /**
     * 已付金额（元/吨）
     */
    private Double amountEdPayable;
    /**
     * 未付金额（元/吨）
     */
    private Double amountNotPayable;
    /**
     * 扣款金额
     */
    private Double deductionAmount;
    /**
     * 付款截图
     */
    private String paymentScreenshot;
    /**
     * 付款日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date paymentDate;
    /**
     * 已开发票(元)
     */
    private Double alreadyInvoice;
    /**
     * 库点
     */
    private String warehouseName;
    /**
     * 状态标识
     */
    private String statusFlag;
    /**
     * 状态
     */
    private String status;
    /**
     * 状态英文
     */
    private String statusEn;
    /**
     * 审核状态
     */
    private String approveStatus;
    /**
     * 审核流id
     */
    private String workflowId;
    /**
     * 备注
     */
    private String remark;
    /**
     * 模糊查询
     */
    @TableField(exist = false)
    private String searchKeyWord;

    /**
     *查询类型
     */
    @TableField(exist = false)
    private String searchType;
    /**
     *付款金额
     */
    @TableField(exist = false)
    private Double money;

    @TableField(exist = false)
    private String taskId;
    /**
     * 磅单
     */
    @TableField(exist = false)
    private String poundImg;
    /**
     * 合同单价
     */
    @TableField(exist = false)
    private Double price;
    /**
     * 货名
     */
    @TableField(exist = false)
    private String goodsName;
    /**
     * 客户
     */
    @TableField(exist = false)
    private String customer;
    /**
     * 修改重量1修改单价2
     */
    @TableField(exist = false)
    private String flag;
    /**
     * 开始时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @TableField(exist = false)
    private Date startDate;
    /**
     * 结束时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @TableField(exist = false)
    private Date endDate;

    /**
     *补货结转对象
     */
    @TableField(exist = false)
    private StockPurchaseReceiptReport stockPurchaseReceiptReport;
    @TableField(exist = false)
    private List<StockPurchaseReceiptReport> stockPurchaseReceiptReportList;


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

}
