package com.jwipc.order.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;

/**
 * <p>
 * 
 * </p>
 *
 * @author zhangjie
 * @since 2024-03-18
 */
@Getter
@Setter
@TableName("t_purchase_order_dev_plan")
public class PurchaseOrderDevPlan implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 采购订单
     */
    private String purchaseOrder;

    /**
     * 行项目号
     */
    private String lineItem;

    /**
     * 计划行号
     */
    private String scheduleLine;

    /**
     * 计划交货日期
     */
    private LocalDate scheduleDeliveryDate;
    /**
     * sap推送的计划交货日期
     */
    private LocalDate sapPlanDate;

    /**
     * 计划交货数量
     */
    private BigDecimal scheduleDeliveryQuantity;

    /**
     * 采购申请
     */
    private String purchaseRequest;

    /**
     * 采购申请行号
     */
    private String purchaseRequestLine;

    /**
     * 已收货数量
     */
    private BigDecimal receivedQuantity;
    /**
     * 备注
     */
    private String remark;

    /**
     * 1:删除，0未删除(默认)
     */
    private int delFlag;

    private String day1;
    private String day2;
    private String day3;
    private String day4;
    private String day5;
    private String day6;
    private String day7;
    private String week1;
    private String week2;
    private String week3;
    private String week4;
    private String week5;
    private String week6;
    private String week7;
    private String week8;
    private String month1;
    private String month2;
    private String month3;
    private String month4;
    private LocalDate lastRequireDate;
    /**
     * 2025-05-07 为日期判断需要，不适用其他业务场景(未清数量)
     */
    @TableField(exist = false)
    private BigDecimal noClearNum;
}
