2024-07-08 17:47:02 +08:00
|
|
|
|
package com.gunshi.project.xyt.model;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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.gunshi.core.dateformat.DateFormatString;
|
|
|
|
|
|
import io.swagger.v3.oas.annotations.media.Schema;
|
|
|
|
|
|
import jakarta.validation.constraints.NotBlank;
|
|
|
|
|
|
import jakarta.validation.constraints.Size;
|
|
|
|
|
|
import lombok.Data;
|
|
|
|
|
|
|
|
|
|
|
|
import java.io.Serializable;
|
|
|
|
|
|
import java.util.Date;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 描述: 典型年降雨资料表
|
|
|
|
|
|
* author: xusan
|
|
|
|
|
|
* date: 2024-07-08 17:34:26
|
|
|
|
|
|
*/
|
|
|
|
|
|
@Schema(description="典型年降雨资料表")
|
|
|
|
|
|
@Data
|
|
|
|
|
|
@TableName("public.ty_year_rainfall")
|
|
|
|
|
|
public class TyYearRainfall implements Serializable {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* id
|
|
|
|
|
|
*/
|
|
|
|
|
|
@TableId(value="id", type= IdType.AUTO)
|
|
|
|
|
|
@Schema(description="id")
|
2024-07-09 10:38:39 +08:00
|
|
|
|
// @Size(max = 0,message = "id最大长度要小于 0")
|
2024-07-08 17:47:02 +08:00
|
|
|
|
@NotBlank(message = "id不能为空")
|
|
|
|
|
|
private Long id;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 类型(1年 2月)
|
|
|
|
|
|
*/
|
|
|
|
|
|
@TableField(value="type")
|
|
|
|
|
|
@Schema(description="类型(1年 2月)")
|
2024-07-09 10:38:39 +08:00
|
|
|
|
// @Size(max = 0,message = "类型(1年 2月)最大长度要小于 0")
|
2024-07-08 17:47:02 +08:00
|
|
|
|
private Integer type;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 年
|
|
|
|
|
|
*/
|
|
|
|
|
|
@TableField(value="year")
|
|
|
|
|
|
@Schema(description="年")
|
2024-07-09 10:38:39 +08:00
|
|
|
|
// @Size(max = 0,message = "年最大长度要小于 0")
|
2024-07-08 17:47:02 +08:00
|
|
|
|
private Integer year;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 月
|
|
|
|
|
|
*/
|
|
|
|
|
|
@TableField(value="month")
|
|
|
|
|
|
@Schema(description="月")
|
2024-07-09 10:38:39 +08:00
|
|
|
|
// @Size(max = 0,message = "月最大长度要小于 0")
|
2024-07-08 17:47:02 +08:00
|
|
|
|
private Integer month;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 降雨量
|
|
|
|
|
|
*/
|
|
|
|
|
|
@TableField(value="drp")
|
|
|
|
|
|
@Schema(description="降雨量")
|
2024-07-09 10:38:39 +08:00
|
|
|
|
// @Size(max = 0,message = "降雨量最大长度要小于 0")
|
2024-07-08 17:47:02 +08:00
|
|
|
|
private String drp;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 丰平枯(1枯 2偏枯 3平 4偏丰 5丰)
|
|
|
|
|
|
*/
|
|
|
|
|
|
@TableField(value="status")
|
|
|
|
|
|
@Schema(description="丰平枯(1枯 2偏枯 3平 4偏丰 5丰)")
|
2024-07-09 10:38:39 +08:00
|
|
|
|
// @Size(max = 0,message = "丰平枯(1枯 2偏枯 3平 4偏丰 5丰)最大长度要小于 0")
|
2024-07-08 17:47:02 +08:00
|
|
|
|
private Integer status;
|
|
|
|
|
|
|
|
|
|
|
|
}
|