package com.wms.entity.table;

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

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 工单明细
 */
@Data
@TableName(value = "tbl_app_kate_orders", autoResultMap = true)
public class KateOrders {
    /**
     * id
     */
    @TableId("order_id")
    private String orderId;
    /**
     * Order
     */
    @TableField("work_order")
    private String workOrder;
    /**
     * Material
     */
    @TableField("goods_id")
    private String goodsId;
    /**
     * Item
     */
    @TableField("item")
    private String item;
    /**
     * Description
     */
    @TableField("description")
    private String description;
    /**
     * SLoc
     */
    @TableField("s_loc")
    private String sLoc;
    /**
     * Type
     */
    @TableField("type")
    private String type;
    /**
     * Status
     */
    @TableField("origin_status")
    private String originStatus;
    /**
     * SupplyArea
     */
    @TableField("supply_area")
    private String supplyArea;
    /**
     * SortStrng
     */
    @TableField("sort_string")
    private String sortString;
    /**
     * Requirement Qty
     */
    @TableField("requirement_quantity")
    private BigDecimal requirementQuantity;
    /**
     * BUn
     */
    @TableField("goods_unit")
    private String goodsUnit;
    /**
     * 工单状态
     * 0：未开始
     * 1：已生成任务
     * 2：已呼叫料箱
     * 3：正在拣选
     * 4：拣选完成
     */
    @TableField("order_status")
    private Integer orderStatus;
    /**
     * 缺少数量
     */
    @TableField("lack_quantity")
    private BigDecimal lackQuantity;
    /**
     * 实际拣选数量
     */
    @TableField("picked_quantity")
    private BigDecimal pickedQuantity;
    /**
     * 操作人员
     */
    @TableField("user_name")
    private String userName;
    /**
     * 完成时间
     */
    @TableField("finish_time")
    private LocalDateTime finishTime;
}
