package com.bonus.material.purchase.domain;

import java.math.BigDecimal;
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;

/**
 * 新购配件验收任务详细对象 purchase_part_details
 *
 * @author xsheng
 * @date 2024-10-16
 */


@Data
@ToString
public class PurchasePartDetails 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 partId;

    /** 采购单价 */
    @Excel(name = "采购单价")
    @ApiModelProperty(value = "采购单价")
    private BigDecimal purchasePrice;

    /** 采购数量 */
    @Excel(name = "采购数量")
    @ApiModelProperty(value = "采购数量")
    private BigDecimal purchaseNum;

    /** 供应商id */
    @Excel(name = "供应商id")
    @ApiModelProperty(value = "供应商id")
    private Long supplierId;

    /** 出厂日期 */
    @ApiModelProperty(value = "出厂日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "出厂日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date productionTime;

    /** 验收数量 */
    @Excel(name = "验收数量")
    @ApiModelProperty(value = "验收数量")
    private BigDecimal checkNum;

    /** 验收结论 */
    @Excel(name = "验收结论")
    @ApiModelProperty(value = "验收结论")
    private String checkResult;

    /** 入库数量 */
    @Excel(name = "入库数量")
    @ApiModelProperty(value = "入库数量")
    private BigDecimal inputNum;

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

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

    /** 附件路径 */
    @Excel(name = "附件路径")
    @ApiModelProperty(value = "附件路径")
    private String fileUrl;

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

    /** 0待验收，1已验收 , 2,验收不通过 3,已入库 4，审核不通过 */
    @Excel(name = "0待验收，1已验收 , 2,验收不通过 3,已入库 4，审核不通过")
    @ApiModelProperty(value = "0待验收，1已验收 , 2,验收不通过 3,已入库 4，审核不通过")
    private Long status;


}
