package com.bonus.material.part.domain;

import com.bonus.common.core.annotation.Excel;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

/**
 * @author : 阮世耀
 * @version : 1.0
 * @PackagePath: com.bonus.material.lease.domain
 * @CreateTime: 2024-12-27  13:09
 * @Description: 描述
 */
@Accessors(chain = true)
@Data
public class PartLeaseInfo implements java.io.Serializable {

    @ApiModelProperty(value = "任务id")
    private Long taskId;

    @ApiModelProperty(value = "申请人")
    @Excel(name = "申请人")
    private String creator;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "申请时间", width = 30, dateFormat = "yyyy-MM-dd hh:mm:ss")
    private Date createTime;

    @ApiModelProperty(value = "配件名称")
    @Excel(name = "申请配件")
    private String partName;

    @ApiModelProperty(value = "任务编码")
    @Excel(name = "单号")
    private String code;

    @ApiModelProperty(value = "审核人")
    @Excel(name = "审核人")
    private String auditor;

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

    @ApiModelProperty(value = "状态，0待审批 1通过 2驳回")
    private Integer taskStatus;

    @ApiModelProperty(value = "状态，0 未审核 1已审核（包含通过和驳回）")
    private Integer appTaskStatus;

    @ApiModelProperty(value = "状态，0待审批 1通过 2驳回")
    @Excel(name = "状态")
    private String taskStatusName;

    @ApiModelProperty(value = "备注")
    private String remarks;

    private String companyId;

    @ApiModelProperty(value = "任务当月序号")
    private Integer monthOrder;

    @ApiModelProperty(value = "开始时间")
    private String startTime;

    @ApiModelProperty(value = "结束时间")
    private String endTime;

    @ApiModelProperty(value = "关键字")
    private String keyWord;

    @ApiModelProperty(value = "申请数量")
    private BigDecimal preNum;

    @ApiModelProperty(value = "明细")
    private List<PartLeaseDetails> partLeaseDetailsList;

}
