package com.bonus.material.repair.domain;

import java.math.BigDecimal;
import java.util.List;

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 lombok.experimental.Accessors;

/**
 * 维修配件详细对象 repair_part_details
 * 
 * @author xsheng
 * @date 2024-10-16
 */
@Data
@ToString
@Accessors(chain = true)
public class RepairPartDetails 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 maId;

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

    /** 配件ID */
    @Excel(name = "配件ID")
    @ApiModelProperty(value = "配件ID")
    private Long partId;

    /** 配件数量 */
    @Excel(name = "配件数量")
    @ApiModelProperty(value = "配件数量")
    private Integer partNum;

    /** 配件费用 */
    @Excel(name = "配件费用")
    @ApiModelProperty(value = "配件费用")
    private BigDecimal partCost;

    /** 类型（0不收费，1收费） */
    @Excel(name = "类型", readConverterExp = "0=不收费，1收费")
    private Integer partType;

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

    /** 维修内容 */
    @Excel(name = "维修内容")
    @ApiModelProperty(value = "维修内容")
    private String repairContent;

    /** 维修数量 */
    @ApiModelProperty(value = "维修数量")
    private Integer repairNum;

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

    /** 报废原因 */
    @ApiModelProperty(value = "报废原因")
    private String scrapReason;

    /** 报废原因类型（0：自然损坏，1人为损坏） */
    @Excel(name = "损坏原因类型", readConverterExp = "0=：自然损坏，1人为损坏")
    private String scrapType;

    /** 附件集合 */
    @ApiModelProperty(value = "附件集合")
    private List<BmFileInfo> fileList;

    /** 维修人员 */
    @ApiModelProperty(value = "维修人")
    private String repairer;

    @ApiModelProperty(value = "配件名称")
    private String partName;

    @ApiModelProperty(value = "物资厂家id")
    private Long supplierId;

    @ApiModelProperty(value = "配件价格")
    private BigDecimal partPrice;
}
