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.JsonProperty; import com.fasterxml.jackson.databind.annotation.JsonSerialize; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import lombok.Data; import org.springnewfiber.dataadapter.sswj.util.RealTimeSerializer; import java.io.Serializable; import java.math.BigDecimal; import java.time.LocalDateTime; import java.util.Date; /** * 泵站监测数据 实体类 * * @author admin * @since 2022-04-21 13:04:31 */ @Data @TableName("xfgd_bz_live") @ApiModel(value = "BzLive对象", description = "泵站监测数据") public class BzLive extends BaseSwjEntity { private static final long serialVersionUID = 1L; /** * 监测时间 */ @ApiModelProperty(value = "监测时间") @TableField(value = "YMDHM") @JSONField(name = "tt",format ="yyyy-MM-dd HH:mm:ss" ) private Date ymdhm; /** * 前池水位 */ @ApiModelProperty(value = "前池水位") @TableField(value = "ZQ") @JSONField(name="z") private BigDecimal zq; /** * 抽排量 */ @ApiModelProperty(value = "抽排量") @TableField(value = "QS") @JSONField(name="qs") private BigDecimal qs; /** * 运行台时 */ @ApiModelProperty(value = "运行台时") @TableField(value = "T") @JSONField(name="t") private BigDecimal t; /** * 开机台数 */ @ApiModelProperty(value = "开机台数") @TableField(value = "TS") @JSONField(name="ts") private BigDecimal ts; @Override @JSONField(serialize = false) public String getTTFileName() { return YMDHMBAK; } @Override @JSONField(serialize = false) public Date getTTDate() { return ymdhm; } }