package com.ruoyi.web.base.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableId;


import com.baomidou.mybatisplus.annotation.TableField;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.web.base.domain.base.Base;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 生产计划单表
 * </p>
 *
 * @author author
 * @since 2026-03-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("production_plan")
@ApiModel(value="ProductionPlan对象", description="生产计划单表")
public class ProductionPlan extends Base {

    private static final long serialVersionUID = 1L;


    @ApiModelProperty(value = "生产日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date orderDate;

    @ApiModelProperty(value = "单据编号")
    private String orderNum;

    @ApiModelProperty(value = "生产类型")
    private String productionType;

    @ApiModelProperty(value = "生产车间编号")
    private String productionPlantNo;

    @ApiModelProperty(value = "生产车间名称")
    private String productionPlantName;

    @ApiModelProperty(value = "生产起始时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date orderStartDate;

    @ApiModelProperty(value = "生产结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date orderEndDate;

    @ApiModelProperty(value = "生产数量")
    private String num;


    @TableField(exist =  false)
    private List<ProductionPlanGoods> goods;

}
