Newer
Older
huludao / src / main / java / com / newfiber / api / pc / model / entity / ProSiteInfoEntity.java
package com.newfiber.api.pc.model.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.newfiber.api.core.base.BaseDomain;
import com.newfiber.api.pc.model.monitor.Sl6512014;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * @author : zhangjun
 * @Project_name:newfiber_haimian_cihu
 * @date:2020/4/23 17:26
 * @email:505724729@qq.com
 * @description:{todo}
 * @Exception: throw {todo}
 */
@Data
@TableName("pro_site_info")
public class ProSiteInfoEntity extends BaseDomain {
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @ApiModelProperty(value = "主键")
    @JsonSerialize(using= ToStringSerializer.class)
    @TableId(type = IdType.ID_WORKER)
    private Long id;
    /** 站点编号 */
    @ApiModelProperty(value = "站点编号")
    private String siteNo;
    /** 站点名称 */
    @ApiModelProperty(value = "站点名称")
    private String siteName;
    /** 站点地址 */
    @ApiModelProperty(value = "站点地址")
    private String siteAddr;
    /** 经度 */
    @ApiModelProperty(value = "经度")
    private BigDecimal pointx;
    /** 维度 */
    @ApiModelProperty(value = "维度")
    private BigDecimal pointy;
    /** 创建时间 */
    @ApiModelProperty(value = "创建时间")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private String createTime;
    /** 创建人 */
    @ApiModelProperty(value = "创建人")
    private String createUser;
    /** 是否启用 */
    @ApiModelProperty(value = "是否启用")
    private Integer isEnable;
    /** 站点类型 */
    @ApiModelProperty(value = "站点类型")
    private Integer typeId;

    /** 是否在线 */
    @TableField(exist = false)
    private String deviceId;

    /** 最新一条监测数据 */
    @TableField(exist = false)
    private Integer channelId;

    /** 存储站点配置的因子 */
    @TableField(exist = false)
    private List<ProFactorsInfoEntity> list;

    /** 存储最近的报警日志 */
    @TableField(exist = false)
    private List<ProWarnLogEntity> warnLogs;

    /** 存储报警预警线 */
    @TableField(exist = false)
    private List<WarnProprtyEntity> warnProprties;

    /** 是否在线 */
    @TableField(exist = false)
    private Boolean onLine;

    /** 最新一条监测数据 */
    @TableField(exist = false)
    private Sl6512014 sl6512014;

}