This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
nezha-nz-transfer/src/main/java/com/nis/entity/Asset.java

96 lines
1.5 KiB
Java
Raw Normal View History

2021-05-08 19:33:06 +08:00
package com.nis.entity;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
@Data
@TableName("asset")
public class Asset implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 主键
*/
@TableId(type = IdType.AUTO)
private Integer id;
/**
* 资产序列化 (唯一)
*/
private String sn;
/**
* 产品型号ID 与model表关联
*/
private Integer modelId;
/**
* 数据中心id
*/
private Integer idcId;
/**
* 机柜编号
*/
@TableField(strategy = FieldStrategy.IGNORED)
private Integer cabinetId;
/**
* 主机地址 ip
*/
private String host;
/**
* 资产状态
*/
private Integer state;
/**
* 购买日期
*/
private String purchaseDate;
/**
* 添加日期
*/
private Date createAt;
/**
* 更新日期
*/
private Date updateAt;
/**
* 添加人 user表关联
*/
private Long createBy;
/**
* 更新人
*/
private Long updateBy;
/**
* 用于撤销具体某次批量导入的uuid
*/
private String seq;
/**
* 机柜开始位置
*/
@TableField(strategy = FieldStrategy.IGNORED)
private Integer cabinetStart;
/**
* 机柜结束位置
*/
@TableField(strategy = FieldStrategy.IGNORED)
private Integer cabinetEnd;
}