Newer
Older
newfiber-data-adapter / src / main / java / org / springnewfiber / dataadapter / sswj / entity / SqGqR.java
package org.springnewfiber.dataadapter.sswj.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * 港渠监测数据 实体类
 * @since 2022-04-21 13:04:31
 * @author admin
 */
@Data
@TableName("xfgd_sq_gq_r")
@ApiModel(value = "SqGqR对象", description = "港渠监测数据")
public class SqGqR extends BaseSwjEntity {

	private static final long serialVersionUID = 1L;

	/**
	 * 监测时间
	 */
	@ApiModelProperty(value = "监测时间")
	@TableField(value = "DATETIME")
	@JSONField(name="tt",format = "yyyy-MM-dd HH:mm:ss")
	private Date datetime;
    
	/**
	 * 监测水位
	 */
	@ApiModelProperty(value = "监测水位")
	@TableField(value = "WATERDATA")
	@JSONField(name="z")
	private BigDecimal waterdata;
    
	/**
	 * 水势
	 */
	@ApiModelProperty(value = "水势")
	@TableField(value = "PPTN")
	@JSONField(name="rate")
	private String pptn;

	@Override
	public String getTTFileName() {
		return DATETIMEBAK;
	}

	@Override
	public Date getTTDate() {
		return datetime;
	}
}