package com.wms_main.excel.easypoi.excelTemplate;

import cn.afterturn.easypoi.excel.annotation.Excel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * 工作记录缓存模版
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class WorkRecordExcelTemplateForSave {
    /**
     * 主键
     */
    @Excel(name = "work_index")
    private String workIndex;
    /**
     * plant
     */
    @Excel(name = "work_order")
    private String workOrder;
    /**
     * 计划开工日期
     */
    @Excel(name = "plan_start_date")
    private LocalDate planStartDate;
    /**
     * 成品号
     */
    @Excel(name = "product_id")
    private String productId;
    /**
     * 单片号
     */
    @Excel(name = "single_product_id")
    private String singleProductId;
    /**
     * 料盒号
     */
    @Excel(name = "box_no")
    private String boxNo;
    /**
     * 原材料号
     */
    @Excel(name = "goods_id")
    private String goodsId;
    /**
     * 需求数量
     */
    @Excel(name = "need_num")
    private Integer needNum;
    /**
     * 已完成数量
     */
    @Excel(name = "finish_num")
    private Integer finishNum;
    /**
     * 工作站台
     */
    @Excel(name = "work_stand")
    private String workStand;
    /**
     * 工作状态
     */
    @Excel(name = "work_status")
    private Integer workStatus;
    /**
     * 工作用户
     */
    @Excel(name = "work_user")
    private String workUser;
    /**
     * 创建时间
     */
    @Excel(name = "create_time", exportFormat = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    /**
     * 完成时间
     */
    @Excel(name = "finish_time", exportFormat = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime finishTime;
    /**
     * 缺料状态
     */
    @Excel(name = "lack_status")
    private Integer lackStatus;
    /**
     * 是否是库外料
     */
    @Excel(name = "is_out")
    private Integer isOut;
    /**
     * 产品类型
     * 1:非服务件
     * 2:服务件
     */
    @Excel(name = "product_type")
    private Integer productType;
    /**
     * 备注
     * 用于ECN相关
     */
    @Excel(name = "kitting_remark")
    private String kittingRemark;
}
