package com.bonus.material.back.domain;

import com.bonus.common.core.annotation.Excel;
import com.bonus.material.basic.domain.BmFileInfo;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
import com.bonus.common.core.web.domain.BaseEntity;

import java.util.List;

/**
 * 退料任务详细对象 back_apply_details
 * 
 * @author xsheng
 * @date 2024-10-16
 */


@Data
@ToString
public class BackApplyDetails extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 退料单号 */
    @Excel(name = "退料单号")
    @ApiModelProperty(value = "退料单号")
    private String code;

    @ApiModelProperty(value = "机具id")
    private Long maId;

    /** 任务ID */
    @Excel(name = "任务ID")
    @ApiModelProperty(value = "任务ID")
    private Long parentId;

    @ApiModelProperty(value = "物资类型")
    private String materialType;

    /** 规格ID */
    @Excel(name = "规格ID")
    @ApiModelProperty(value = "规格ID")
    private Long typeId;

    @ApiModelProperty(value = "类型名称")
    private String typeName;

    @ApiModelProperty(value = "规格型号")
    private String typeModel;

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

    @ApiModelProperty(value = "管理方式(0编号 1计数)")
    private String manageType;

    /**
     * 机具编码集合（可能存在多个，数据库存储用逗号分割）
     */
    private List<MaCodeDto> maCodeList;

    /** 退料数量 */
    @ApiModelProperty(value = "退料数量")
    private Integer preNum;

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

    /** 在用数量 */
    @ApiModelProperty(value = "在用数量")
    private Integer num;

    /** 状态(0待审批，1进行中，2已出库，3已驳回) */
    @ApiModelProperty(value = "状态(0待审批，1进行中，2已出库，3已驳回)")
    private String status;

    @ApiModelProperty(value = "机具外观判断")
    private String apDetection;

    @ApiModelProperty(value = "退料状态")
    private String backStatus;

    @ApiModelProperty(value = "是否完成 (0:未完成退料,可以撤回 1:已完成退料,不能撤回)")
    private Integer isFinished;

    /** 数据所属组织 */
    @ApiModelProperty(value = "数据所属组织")
    private Long companyId;

    /**
     * 附件列表
     */
    @ApiModelProperty(value = "附件列表")
    List<BmFileInfo> bmFileInfos;

}
