99 lines
2.6 KiB
Java
99 lines
2.6 KiB
Java
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.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
||
import com.gunshi.project.xyt.validate.markers.Update;
|
||
import io.swagger.v3.oas.annotations.media.Schema;
|
||
|
||
import java.io.Serializable;
|
||
import java.util.Date;
|
||
|
||
import jakarta.validation.constraints.NotNull;
|
||
import jakarta.validation.constraints.Size;
|
||
import lombok.Data;
|
||
|
||
/**
|
||
* 监测断面信息表
|
||
*/
|
||
@Schema(description="监测断面信息表")
|
||
@Data
|
||
@TableName(value = "dbo.ST_MONCR_B")
|
||
public class StMoncrB implements Serializable {
|
||
/**
|
||
* 断面ID
|
||
*/
|
||
@TableId(value = "CR_ID", type = IdType.INPUT)
|
||
@Schema(description="断面ID")
|
||
@JsonSerialize(using = ToStringSerializer.class)
|
||
@NotNull(message = "断面ID不能为空", groups = {Update.class})
|
||
private Long crId;
|
||
|
||
/**
|
||
* 断面编号
|
||
*/
|
||
@TableField(value = "CR_CD")
|
||
@Schema(description="断面编号")
|
||
@Size(max = 50,message = "断面编号长度不能超过50")
|
||
@NotNull
|
||
private String crCd;
|
||
|
||
/**
|
||
* 断面名称
|
||
*/
|
||
@TableField(value = "CR_NM")
|
||
@Schema(description="断面名称")
|
||
@Size(max = 200,message = "断面名称长度不能超过200")
|
||
@NotNull
|
||
private String crNm;
|
||
|
||
/**
|
||
* 断面平面图 文件ID
|
||
*/
|
||
@TableField(value = "CR_IMG_ID")
|
||
@Schema(description="断面平面图 文件ID")
|
||
@JsonSerialize(using = ToStringSerializer.class)
|
||
@NotNull
|
||
private Long crImgId;
|
||
|
||
/**
|
||
* 排序字段
|
||
*/
|
||
@TableField(value = "SORT_ON")
|
||
@Schema(description="排序字段")
|
||
private Integer sortOn;
|
||
|
||
/**
|
||
* 状态 1:启用 0:禁用
|
||
*/
|
||
@TableField(value = "[STATUS]")
|
||
@Schema(description="状态 1:启用 0:禁用")
|
||
@NotNull
|
||
private Integer status;
|
||
|
||
/**
|
||
* 时间戳
|
||
*/
|
||
@TableField(value = "TM")
|
||
@Schema(description="时间戳")
|
||
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
|
||
private Date tm;
|
||
|
||
public static final String COL_CR_ID = "CR_ID";
|
||
|
||
public static final String COL_CR_CD = "CR_CD";
|
||
|
||
public static final String COL_CR_NM = "CR_NM";
|
||
|
||
public static final String COL_CR_IMG_ID = "CR_IMG_ID";
|
||
|
||
public static final String COL_SORT_ON = "SORT_ON";
|
||
|
||
public static final String COL_STATUS = "STATUS";
|
||
|
||
public static final String COL_TM = "TM";
|
||
} |