package com.bonus.material.back.domain;

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

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

/**
 * 设备详情列表
 *
 * @author ma_sh
 */
@Data
public class BackCsDeviceDetails {

    private Long id;

    private Long detailsId;

    @ApiModelProperty(value = "主任务ID")
    private Long changeId;

    @ApiModelProperty(value = "类型ID")
    private Long typeId;

    @ApiModelProperty(value = "设备类型 1装备 2工具")
    private String devType;

    @ApiModelProperty(value = "类目")
    private String category;

    @ApiModelProperty(value = "工具类目")
    private String toolTypeId;

    @ApiModelProperty(value = "装备类目")
    private String categoryEquipment;

    @ApiModelProperty(value = "名称")
    private String typeName;

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

    @ApiModelProperty(value = "计量单位")
    private String unitName;

    @ApiModelProperty(value = "管理模式")
    private String manageType;

    @ApiModelProperty(value = "设备编码")
    private String devCode;

    @ApiModelProperty(value = "在用量")
    private BigDecimal useNum;

    @ApiModelProperty(value = "申请数量")
    private BigDecimal num = BigDecimal.ZERO;

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

    @ApiModelProperty(value = "使用到期日期开始")
    private LocalDate useStartTime;

    @ApiModelProperty(value = "使用到期日期结束")
    private LocalDate useEndTime;


    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date updateTime;

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

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

    @ApiModelProperty(value = "维修数量")
    private BigDecimal realNum =  BigDecimal.ZERO;

    @ApiModelProperty(value = "是否维修 0无需维修  1维修")
    private String isRepair;

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

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

    @ApiModelProperty(value = "设备状态")
    private String maStatus;

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

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

}
