package com.bonus.material.scrap.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.bonus.common.core.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
import com.bonus.common.core.web.domain.BaseEntity;

/**
 * 报废任务详细对象 scrap_apply_details
 * 
 * @author xsheng
 * @date 2024-10-16
 */


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

    /** id */
    private Long id;

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

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

    /** 机具ID */
    @Excel(name = "机具ID")
    @ApiModelProperty(value = "机具ID")
    private Long maId;

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

    /** 报废数量 */
    @Excel(name = "报废数量")
    @ApiModelProperty(value = "报废数量")
    private Integer scrapNum;

    /** (1退料2,维修审核，3盘点) */
    @Excel(name = "(1退料2,维修审核，3盘点)")
    @ApiModelProperty(value = "(1退料2,维修审核，3盘点)")
    private String scrapSource;

    /** （0自然，1人为） */
    @Excel(name = "", readConverterExp = "0=自然，1人为")
    private String scrapType;

    /** 状态（0进行中，1已审核，2驳回） */
    @Excel(name = "状态", readConverterExp = "0=进行中，1已审核，2驳回")
    private String status;

    /** 审核人 */
    @Excel(name = "审核人")
    @ApiModelProperty(value = "审核人")
    private Long auditBy;

    /** 审核时间 */
    @ApiModelProperty(value = "审核时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "审核时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date auditTime;

    /** 审核备注 */
    @Excel(name = "审核备注")
    @ApiModelProperty(value = "审核备注")
    private String auditRemark;

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

    /** 文件名 */
    @Excel(name = "文件名")
    @ApiModelProperty(value = "文件名")
    private String fileName;

    /** 文件url */
    @Excel(name = "文件url")
    @ApiModelProperty(value = "文件url")
    private String fileUrl;


}
