Newer
Older
newfiber-data-adapter / src / main / java / org / springnewfiber / dataadapter / sswj / entity / ZgRainData.java
@dongjt dongjt on 26 Apr 2022 1 KB 对接雨量数据
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 io.swagger.annotations.ApiModel;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @program: newfiber-data-adapter
 * @description: 紫光雨量数据
 * @author: djt
 * @create: 2022-04-26 20:26
 **/
@Data
@TableName("zg_rainfall_data")
@ApiModel(value = "紫光雨量数据对象", description = "紫光雨量数据对象")
public class ZgRainData implements Serializable {
    @TableField(value = "STCD")
    @JSONField(name = "st")
    private String STCD;
    @TableField(value = "STNM")
    @JSONField(serialize = false)
    private String STNM;
    @TableField(value = "DRP")
    @JSONField(name = "p1")
    private BigDecimal DRP;
    @TableField(value = "TM")
    @JSONField(name = "tt", format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date TM;
    @TableField(exist = false)
    @JSONField(name = "pt")
    private BigDecimal pt=BigDecimal.ZERO;
}