package com.bonus.material.repair.domain;

import java.util.Date;

import com.bonus.common.biz.enums.TmTaskTypeEnum;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.bonus.common.core.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import com.bonus.common.core.web.domain.BaseEntity;


/**
 * 修试审核详细对象 repair_audit_details
 * 
 * @author syruan
 */
@EqualsAndHashCode(callSuper = false)
@Data
@ToString
public class RepairAuditDetails extends BaseEntity {

    private static final long serialVersionUID = -8752731235584328836L;

    /** ID */
    private Long id;

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

    @ApiModelProperty(value = "任务状态")
    @Excel(name = "任务状态")
    private String taskStatus;

    @ApiModelProperty(value = "任务类型编码")
    private Integer taskTypeCode = TmTaskTypeEnum.TM_TASK_REPAIR.getTaskTypeId();

    /** 维修ID */
    @ApiModelProperty(value = "维修ID")
    private Long repairId;

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

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

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

    @ApiModelProperty(value = "机具类型名称")
    private String machineTypeName;

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

    /** 维修合格数量 */
    @Excel(name = "维修合格数量")
    @ApiModelProperty(value = "维修合格数量")
    private Integer repairedNum;

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

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

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

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

    /** 0未审核1已审核2驳回 */
    @Excel(name = "状态", readConverterExp = "0=未审核,1=已审核,2=驳回")
    @ApiModelProperty(value = "0未审核1已审核2驳回")
    private String status;

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


    /**传入参数*/
    @ApiModelProperty(value = "单位id")
    private Integer backUnit;
    @ApiModelProperty(value = "工程id")
    private Integer backPro;
    @ApiModelProperty(value = "工机具类型id")
    private Integer type;
    @ApiModelProperty(value = "维修单号")
    private String backCode;
    @ApiModelProperty(value = "关键字")
    private String keyword;

    @Excel(name = "设备类型")
    @ApiModelProperty(value = "设备类型")
    private String typeName;
}
