package com.bonus.sgzb.base.api.domain;

import com.alibaba.fastjson2.annotation.JSONField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 领料出库详情表
 *
 * @TableName lease_out_details
 * @Version 1.0
 * @Author 阮世耀
 * @Since 2023-12-17
 */

@ApiModel(description = "领料出库详情表", value = "LeaseOutDetails")
@Data
public class LeaseOutDetails implements Serializable {

    private static final long serialVersionUID = 2040328845027085291L;

    @ApiModelProperty(value = "id")
    private Integer id;

    /**
     * 父级ID
     */
    @ApiModelProperty(value = "父级ID")
    private Integer parentId;

    /**
     * 任务ID
     */
    @ApiModelProperty(value = "任务ID")
    private Integer taskId;

    /**
     * 任务编码
     */
    @ApiModelProperty(value = "任务编码")
    private String code;

    /**
     * 单位名称
     */
    @ApiModelProperty(value = "单位名称")
    private String unitName;

    /**
     * 工程名称
     */
    @ApiModelProperty(value = "工程名称")
    private String proName;

    /**
     * 规格ID
     */
    @ApiModelProperty(value = "规格ID")
    private Integer typeId;

    /**
     * 规格名称
     */
    @ApiModelProperty(value = "规格名称")
    private String typeName;

    /**
     * maId
     */
    @ApiModelProperty(value = "maId")
    private Integer maId;

    /**
     * 机具编号
     */
    @ApiModelProperty(value = "机具编号")
    private String maCode;

    /**
     * 协议ID
     */
    @ApiModelProperty(value = "协议ID")
    private String agreementId;

    /**
     * 预领数量
     */
    @ApiModelProperty(value = "预领数量")
    private Double preNum;

    /**
     * 审批数量
     */
    @ApiModelProperty(value = "审批数量")
    private Double auditNum;

    /**
     * 出库数量
     */
    @ApiModelProperty(value = "出库数量")
    private Double outNum;

    /**
     * 出库类型
     */
    @ApiModelProperty(value = "出库类型")
    private String outType;

    /**
     * 创建者
     */
    @ApiModelProperty(value = "创建者")
    private String createBy;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     * 更新者
     */
    @ApiModelProperty(value = "更新者")
    private String updateBy;

    /**
     * 更新时间
     */
    @ApiModelProperty(value = "更新时间")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    /**
     * 备注
     */
    @ApiModelProperty(value = "备注")
    private String remark;

    /**
     * 车牌号
     */
    @ApiModelProperty(value = "车牌号")
    private String carCode;

    /**
     * 数据所属组织
     */
    @ApiModelProperty(value = "数据所属组织")
    private Integer companyId;
    @ApiModelProperty(value = "出库类型 0编码出库  1数量出库 2成套出库")
    private Integer manageType;
    @ApiModelProperty(value = "数量出库-出库数量")
    private Integer inputNum;
    @ApiModelProperty(value = "0工程1长期")
    private String leaseType;

    @ApiModelProperty(value = "数量出库 -> 操作前库存量")
    private Integer num;

    /** 操作前库存 */
    private int preStoreNum;
    /** 操作后库存 */
    private int postStoreNum;
}