fxkh-txl-service/src/main/java/com/whdc/zhdbaqapi/model/entity/DeviceData.java

119 lines
3.4 KiB
Java
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

package com.whdc.zhdbaqapi.model.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import lombok.experimental.Accessors;
import java.math.BigDecimal;
import java.util.Date;
/**
* @author 李赛
* @date 2022-07-21 23:28
*/
@Data
@TableName("DEVICE_DATA")
@Accessors(chain = true) // chain = true 实现链式调用
@ApiModel(value = "DEVICE_DATA 对象", description = "设备数据")
@JsonInclude(JsonInclude.Include.NON_NULL) // 表示序列化非null属性
public class DeviceData {
/**
* 主键id
*/
@ApiParam(value = "主键id")
@ApiModelProperty(value = "主键id", dataType = "java.lang.Integer")
@TableId(value = "ID", type = IdType.AUTO)
private Integer id;
/**
* 渗压值
*/
@ApiParam(value = "渗压值")
@ApiModelProperty(value = "渗压值", dataType = "java.math.BigDecimal")
@TableField("OSMOMETER")
private BigDecimal osmometer;
/**
* 通道类型。=5时 data_a 频率data_b 温度
*/
@ApiParam(value = "通道类型。=5时 data_a 频率data_b 温度")
@ApiModelProperty(value = "通道类型。=5时 data_a 频率data_b 温度", dataType = "java.lang.String")
@TableField("CHANNEL_TYPE")
private String channelType;
/**
* 入库时间
*/
@ApiParam(value = "入库时间")
@ApiModelProperty(value = "入库时间", dataType = "java.lang.Date")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@TableField("CREATETIME")
private Date createtime;
/**
*
*/
@ApiParam(value = "")
@ApiModelProperty(value = "", dataType = "java.math.BigDecimal")
@TableField("DATA_C")
private BigDecimal dataC;
/**
*
*/
@ApiParam(value = "")
@ApiModelProperty(value = "", dataType = "java.math.BigDecimal")
@TableField("DATA_B")
private BigDecimal dataB;
/**
*
*/
@ApiParam(value = "")
@ApiModelProperty(value = "", dataType = "java.math.BigDecimal")
@TableField("DATA_A")
private BigDecimal dataA;
/**
* 通道号
*/
@ApiParam(value = "通道号")
@ApiModelProperty(value = "通道号", dataType = "java.lang.Integer")
@TableField("CHANNEL_NUM")
private Integer channelNum;
/**
* 数据时间
*/
@ApiParam(value = "数据时间")
@ApiModelProperty(value = "数据时间", dataType = "java.lang.Date")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@TableField("TIMESTAMP")
private Date timestamp;
/**
* 测站编码MCU
*/
@ApiParam(value = "测站编码MCU")
@ApiModelProperty(value = "测站编码MCU", dataType = "java.lang.String")
@TableField("DEVICE_ID")
private String deviceId;
/**
* 管内水位
*/
@ApiParam(value = "管内水位")
@ApiModelProperty(value = "管内水位", dataType = "java.math.BigDecimal")
@TableField("PIPE_Z")
private BigDecimal pipeZ;
}