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;
|
2024-08-14 15:22:06 +08:00
|
|
|
|
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
|
|
|
|
|
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
2024-07-08 17:47:02 +08:00
|
|
|
|
import com.gunshi.core.dateformat.DateFormatString;
|
2024-08-13 15:03:45 +08:00
|
|
|
|
import com.gunshi.project.xyt.validate.markers.Update;
|
2024-07-08 17:47:02 +08:00
|
|
|
|
import io.swagger.v3.oas.annotations.media.Schema;
|
|
|
|
|
|
import jakarta.validation.constraints.NotBlank;
|
2024-07-22 17:11:26 +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;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 描述: 水库责任体系表
|
|
|
|
|
|
* 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")
|
2024-08-13 15:03:45 +08:00
|
|
|
|
@NotNull(message = "主键不能为空",groups = {Update.class})
|
2024-08-14 15:22:06 +08:00
|
|
|
|
@JsonSerialize(using = ToStringSerializer.class)
|
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;
|
|
|
|
|
|
|
|
|
|
|
|
}
|