gunshi-project-ss/src/main/java/com/gunshi/project/xyt/model/ResSafePersonB.java

107 lines
3.4 KiB
Java
Raw Normal View History

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.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;
/**
* :
* author: xusan
* date: 2024-07-08 17:34:26
*/
@Schema(description="水库责任体系表")
@Data
@TableName("public.res_safe_person_b")
public class ResSafePersonB implements Serializable {
private static final long serialVersionUID = 1L;
/**
*
*/
@TableId(value="id", type= IdType.AUTO)
@Schema(description="主键")
2024-07-09 10:38:39 +08:00
// @Size(max = 0,message = "主键最大长度要小于 0")
@NotNull(message = "主键不能为空")
2024-07-08 17:47:02 +08:00
private Long id;
/**
*
*/
@TableField(value="res_code")
@Schema(description="水库代码")
@Size(max = 32,message = "水库代码最大长度要小于 32")
@NotBlank(message = "水库代码不能为空")
private String resCode;
/**
* 1 2 3 4 5
*/
@TableField(value="rep_type")
@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 repType;
/**
*
*/
@TableField(value="person_name")
@Schema(description="姓名")
@Size(max = 20,message = "姓名最大长度要小于 20")
private String personName;
/**
*
*/
@TableField(value="org_name")
@Schema(description="单位")
@Size(max = 20,message = "单位最大长度要小于 20")
private String orgName;
/**
*
*/
@TableField(value="position")
@Schema(description="职务")
@Size(max = 20,message = "职务最大长度要小于 20")
private String position;
/**
*
*/
@TableField(value="tel")
@Schema(description="联系方式")
@Size(max = 20,message = "联系方式最大长度要小于 20")
private String tel;
/**
*
*/
@TableField(value="sort_on")
@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 sortOn;
/**
*
*/
@TableField(value="moditime")
@Schema(description="时间戳")
2024-07-09 10:38:39 +08:00
// @Size(max = 0,message = "时间戳最大长度要小于 0")
2024-07-08 17:47:02 +08:00
@JsonFormat(pattern = DateFormatString.YYYY_MM_DD_HH_MM_SS, timezone = "GMT+8")
private Date moditime;
}