package com.bonus.material.back.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDate;
import java.util.Date;

/**
 * 设备详情
 *
 * @author ma_sh
 */
@Data
public class BackCsDeviceInfo {

    private Long id;

    @ApiModelProperty(value = "需求单位")
    private String useUnit;

    @ApiModelProperty(value = "项目编号")
    private String proCode;

    @ApiModelProperty(value = "使用项目")
    private String proName;

    @ApiModelProperty(value = "项目类型")
    private String proType;

    @ApiModelProperty(value = "电压等级")
    private String voltageLevel;

    @ApiModelProperty(value = "省")
    private String proProvince;

    @ApiModelProperty(value = "市")
    private String proCity;

    @ApiModelProperty(value = "区/县")
    private String proCounty;

    @ApiModelProperty(value = "使用到期日期")
    private String useTime;

    @ApiModelProperty(value = "使用到期日期开始")

    private LocalDate useStartTime;

    @ApiModelProperty(value = "使用到期日期结束")

    private LocalDate useEndTime;

    @ApiModelProperty(value = "领用单号")
    private String code;

    @ApiModelProperty(value = "任务类型 1退还  2领用 3退役  4维修")
    private String type;

    @ApiModelProperty(value = "领用方式 0自用  1共享")
    private String leaseType;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    @ApiModelProperty(value = "创建人")
    private String createBy;

    @ApiModelProperty(value = "更新人")
    private String updateBy;

    @ApiModelProperty(value = "退库装备数量")
    private Integer devNum;

    @ApiModelProperty(value = "退库工具数量")
    private Integer toolNum;

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

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

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

    /**
     * 审核状态
     */
    private String reviewStatus;

    /**
     * 创建人
     */
    private String createUser;


    private String changeStatus;

    private String changeUnit;

    @ApiModelProperty(value = "所属公司id")
    private Long companyId;
}
