2024-07-08 17:47:02 +08:00
|
|
|
package com.gunshi.project.xyt.model;
|
|
|
|
|
|
|
|
|
|
import com.baomidou.mybatisplus.annotation.TableField;
|
|
|
|
|
import com.baomidou.mybatisplus.annotation.TableName;
|
|
|
|
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
2024-07-09 09:39:21 +08:00
|
|
|
import com.github.jeffreyning.mybatisplus.anno.MppMultiId;
|
2024-07-08 17:47:02 +08:00
|
|
|
import com.gunshi.core.dateformat.DateFormatString;
|
|
|
|
|
import io.swagger.v3.oas.annotations.media.Schema;
|
|
|
|
|
import jakarta.validation.constraints.NotBlank;
|
2024-07-09 09:39:21 +08:00
|
|
|
import jakarta.validation.constraints.NotNull;
|
2024-07-08 17:47:02 +08:00
|
|
|
import jakarta.validation.constraints.Size;
|
|
|
|
|
import lombok.Data;
|
|
|
|
|
|
|
|
|
|
import java.io.Serializable;
|
|
|
|
|
import java.util.Date;
|
|
|
|
|
|
2024-07-09 09:39:21 +08:00
|
|
|
@Schema
|
2024-07-08 17:47:02 +08:00
|
|
|
@Data
|
2024-07-09 09:39:21 +08:00
|
|
|
@TableName(value = "st_img_r")
|
2024-07-08 17:47:02 +08:00
|
|
|
public class StImgR implements Serializable {
|
2024-07-09 09:39:21 +08:00
|
|
|
@TableField(value = "stcd")
|
|
|
|
|
@MppMultiId
|
2024-07-22 17:11:26 +08:00
|
|
|
@Schema(description="测站编码")
|
|
|
|
|
@Size(max = 20,message = "测站编码最大长度要小于 20")
|
|
|
|
|
@NotBlank(message = "测站编码不能为空")
|
2024-07-08 17:47:02 +08:00
|
|
|
private String stcd;
|
|
|
|
|
|
2024-07-09 09:39:21 +08:00
|
|
|
@MppMultiId
|
|
|
|
|
@TableField(value = "tm")
|
2024-07-22 17:11:26 +08:00
|
|
|
@Schema(description="时间")
|
|
|
|
|
@NotNull(message = "时间不能为为空")
|
2024-07-08 17:47:02 +08:00
|
|
|
@JsonFormat(pattern = DateFormatString.YYYY_MM_DD_HH_MM_SS, timezone = "GMT+8")
|
|
|
|
|
private Date tm;
|
|
|
|
|
|
2024-07-09 09:39:21 +08:00
|
|
|
@TableField(value = "chtm")
|
|
|
|
|
@Schema(description="")
|
|
|
|
|
@NotNull(message = "不能为null")
|
|
|
|
|
private Date chtm;
|
|
|
|
|
|
|
|
|
|
@TableField(value = "img_path")
|
2024-07-22 17:11:26 +08:00
|
|
|
@Schema(description="图片路径")
|
|
|
|
|
@Size(max = 256,message = "图片路径最大长度要小于 256")
|
|
|
|
|
@NotBlank(message = "图片路径不能为空")
|
2024-07-08 17:47:02 +08:00
|
|
|
private String imgPath;
|
|
|
|
|
|
2024-07-09 09:39:21 +08:00
|
|
|
@TableField(value = "chid")
|
|
|
|
|
@Schema(description="")
|
|
|
|
|
@Size(max = 10,message = "最大长度要小于 10")
|
|
|
|
|
@NotBlank(message = "不能为空")
|
2024-07-08 17:47:02 +08:00
|
|
|
private String chid;
|
|
|
|
|
|
2024-07-09 09:39:21 +08:00
|
|
|
@TableField(value = "\"source\"")
|
|
|
|
|
@Schema(description="")
|
|
|
|
|
@Size(max = 50,message = "最大长度要小于 50")
|
2024-07-08 17:47:02 +08:00
|
|
|
private String source;
|
|
|
|
|
|
2024-07-09 09:39:21 +08:00
|
|
|
@TableField(value = "mtmcd")
|
|
|
|
|
@Schema(description="")
|
|
|
|
|
@Size(max = 20,message = "最大长度要小于 20")
|
2024-07-08 17:47:02 +08:00
|
|
|
private String mtmcd;
|
|
|
|
|
|
2024-07-09 09:39:21 +08:00
|
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
|
|
|
|
|
|
public static final String COL_STCD = "stcd";
|
|
|
|
|
|
|
|
|
|
public static final String COL_TM = "tm";
|
|
|
|
|
|
|
|
|
|
public static final String COL_CHTM = "chtm";
|
|
|
|
|
|
|
|
|
|
public static final String COL_IMG_PATH = "img_path";
|
|
|
|
|
|
|
|
|
|
public static final String COL_CHID = "chid";
|
|
|
|
|
|
|
|
|
|
public static final String COL_SOURCE = "source";
|
|
|
|
|
|
|
|
|
|
public static final String COL_MTMCD = "mtmcd";
|
2024-07-08 17:47:02 +08:00
|
|
|
}
|