98 lines
2.3 KiB
Java
98 lines
2.3 KiB
Java
|
|
package com.gunshi.project.xyt.model;
|
||
|
|
|
||
|
|
import com.baomidou.mybatisplus.annotation.TableField;
|
||
|
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||
|
|
import com.github.jeffreyning.mybatisplus.anno.MppMultiId;
|
||
|
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||
|
|
import jakarta.validation.constraints.NotBlank;
|
||
|
|
import jakarta.validation.constraints.NotNull;
|
||
|
|
import jakarta.validation.constraints.Size;
|
||
|
|
import lombok.Data;
|
||
|
|
|
||
|
|
import java.io.Serializable;
|
||
|
|
import java.math.BigDecimal;
|
||
|
|
import java.util.Date;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 降水量表
|
||
|
|
*/
|
||
|
|
@Schema(description="降水量表")
|
||
|
|
@Data
|
||
|
|
@TableName(value = "st_pptn_r")
|
||
|
|
public class StPptnR implements Serializable {
|
||
|
|
/**
|
||
|
|
* 时间
|
||
|
|
*/
|
||
|
|
@TableField(value = "tm")
|
||
|
|
@MppMultiId
|
||
|
|
@Schema(description="时间")
|
||
|
|
@NotNull(message = "时间不能为null")
|
||
|
|
private Date tm;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 测站编码
|
||
|
|
*/
|
||
|
|
@TableField(value = "stcd")
|
||
|
|
@MppMultiId
|
||
|
|
@Schema(description="测站编码")
|
||
|
|
@Size(max = 20,message = "测站编码最大长度要小于 20")
|
||
|
|
@NotBlank(message = "测站编码不能为空")
|
||
|
|
private String stcd;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 时段降水量
|
||
|
|
*/
|
||
|
|
@TableField(value = "drp")
|
||
|
|
@Schema(description="时段降水量")
|
||
|
|
private BigDecimal drp;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 时段长
|
||
|
|
*/
|
||
|
|
@TableField(value = "intv")
|
||
|
|
@Schema(description="时段长")
|
||
|
|
private BigDecimal intv;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 降水历时
|
||
|
|
*/
|
||
|
|
@TableField(value = "pdr")
|
||
|
|
@Schema(description="降水历时")
|
||
|
|
private BigDecimal pdr;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 日降水量
|
||
|
|
*/
|
||
|
|
@TableField(value = "dyp")
|
||
|
|
@Schema(description="日降水量")
|
||
|
|
private BigDecimal dyp;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 天气状况
|
||
|
|
*/
|
||
|
|
@TableField(value = "wth")
|
||
|
|
@Schema(description="天气状况")
|
||
|
|
private String wth;
|
||
|
|
|
||
|
|
@TableField(value = "chtm")
|
||
|
|
@Schema(description="")
|
||
|
|
private Date chtm;
|
||
|
|
|
||
|
|
private static final long serialVersionUID = 1L;
|
||
|
|
|
||
|
|
public static final String COL_TM = "tm";
|
||
|
|
|
||
|
|
public static final String COL_STCD = "stcd";
|
||
|
|
|
||
|
|
public static final String COL_DRP = "drp";
|
||
|
|
|
||
|
|
public static final String COL_INTV = "intv";
|
||
|
|
|
||
|
|
public static final String COL_PDR = "pdr";
|
||
|
|
|
||
|
|
public static final String COL_DYP = "dyp";
|
||
|
|
|
||
|
|
public static final String COL_WTH = "wth";
|
||
|
|
|
||
|
|
public static final String COL_CHTM = "chtm";
|
||
|
|
}
|