package com.wms_main.model.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

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

/**
 * work_record表映射
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "t_app_work_record", autoResultMap = true)
public class TAppWorkRecord {
    /**
     * 主键
     */
    @TableId(value = "work_index")
    private String workIndex;
    /**
     * plant
     */
    @TableField(value = "work_order")
    private String workOrder;
    /**
     * 计划开工日期
     */
    @TableField(value = "plan_start_date")
    private LocalDate planStartDate;
    /**
     * 成品号
     */
    @TableField(value = "product_id")
    private String productId;
    /**
     * 单片号
     */
    @TableField(value = "single_product_id")
    private String singleProductId;
    /**
     * 料盒号
     */
    @TableField(value = "box_no")
    private String boxNo;
    /**
     * 原材料号
     */
    @TableField(value = "goods_id")
    private String goodsId;
    /**
     * 需求数量
     */
    @TableField(value = "need_num")
    private Integer needNum;
    /**
     * 已完成数量
     */
    @TableField(value = "finish_num")
    private Integer finishNum;
    /**
     * 工作站台
     */
    @TableField(value = "work_stand")
    private String workStand;
    /**
     * 工作状态
     */
    @TableField(value = "work_status")
    private Integer workStatus;
    /**
     * 工作用户
     */
    @TableField(value = "work_user")
    private String workUser;
    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private LocalDateTime createTime;
    /**
     * 完成时间
     */
    @TableField(value = "finish_time")
    private LocalDateTime finishTime;
    /**
     * 缺料状态
     */
    @TableField(value = "lack_status")
    private Integer lackStatus;
    /**
     * 是否是库外料
     */
    @TableField(value = "is_out")
    private Integer isOut;
    /**
     * 产品类型
     * 1:非服务件
     * 2:服务件
     */
    @TableField(value = "product_type")
    private Integer productType;
}
