package com.bonus.material.devchange.domain;

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

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

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

    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 storageNum;

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

    @ApiModelProperty(value = "使用到期日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private String useTime;

    @ApiModelProperty(value = "使用到期开始日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private String useStartTime;

    @ApiModelProperty(value = "使用到期结束日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private String useEndTime;

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

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

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

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

    private BigDecimal realNum;

    private String isFinished;

    private BigDecimal outNum;

    @ApiModelProperty(value = "数据所属组织")
    private Long companyId;
    /**
     * 下次维保日期
     */
    @Excel(name = "下次维保日期", dateFormat = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @ApiModelProperty(value = "下次维保日期（yyyy-MM-dd）")
    private Date nextMaintenanceDate;

    private String remainingYears;

    private String proCode;

}
