package com.moral.api.entity;
|
|
import com.baomidou.mybatisplus.annotation.IdType;
|
import com.baomidou.mybatisplus.annotation.TableField;
|
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
import com.baomidou.mybatisplus.annotation.TableId;
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
|
import java.io.Serializable;
|
import java.util.Date;
|
|
import lombok.Data;
|
import lombok.EqualsAndHashCode;
|
|
/**
|
* <p>
|
* 设备表
|
* </p>
|
*
|
* @author moral
|
* @since 2021-05-11
|
*/
|
@Data
|
@EqualsAndHashCode(callSuper = false)
|
public class Device extends Model<Device> {
|
|
private static final long serialVersionUID = 1L;
|
|
/**
|
* 主键id
|
*/
|
@TableId(value = "id", type = IdType.AUTO)
|
private Integer id;
|
|
/**
|
* 设备名称
|
*/
|
private String name;
|
|
/**
|
* mac号
|
*/
|
private String mac;
|
|
/**
|
* 设备地址
|
*/
|
private String address;
|
|
/**
|
* 经度
|
*/
|
private Double longitude;
|
|
/**
|
* 纬度
|
*/
|
private Double latitude;
|
|
/**
|
* 设备状态,与字典表关联
|
*/
|
private String state;
|
|
/**
|
* 维护人id,多个逗号隔开,来源于manage_account
|
*/
|
private String operateIds;
|
|
/**
|
* 站点id
|
*/
|
private Integer monitorPointId;
|
|
/**
|
* 组织id
|
*/
|
private Integer organizationId;
|
|
/**
|
* 设备型号id
|
*/
|
private Integer deviceVersionId;
|
|
/**
|
* 行业,与字典表关联
|
*/
|
private String profession;
|
|
/**
|
* 设备工艺,1:烟道;2:厂界;3:车间,基本数据在字典表
|
*/
|
private String tech;
|
|
/**
|
* 设备检测器,与字典表关联
|
*/
|
private String detector;
|
|
/**
|
* 采购商,与字典表关联
|
*/
|
private String purchaser;
|
|
/**
|
* 创建(生产)时间
|
*/
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
private Date createTime;
|
|
/**
|
* 更新时间
|
*/
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
private Date updateTime;
|
|
/**
|
* 安装时间
|
*/
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
private Date installTime;
|
|
/**
|
* 逻辑删除,0:不删除;1:删除
|
*/
|
private String isDelete;
|
|
/**
|
* 设备工艺扩展字段
|
*/
|
private String extend;
|
|
/*
|
* 设备型号
|
* */
|
@TableField(exist = false)
|
private Version version;
|
|
|
}
|