106 lines
3.3 KiB
Java
106 lines
3.3 KiB
Java
|
|
package com.gunshi.project.ss.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;
|
|||
|
|
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_mang_unit")
|
|||
|
|
public class ResMangUnit implements Serializable {
|
|||
|
|
|
|||
|
|
|
|||
|
|
private static final long serialVersionUID = 1L;
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* 主键
|
|||
|
|
*/
|
|||
|
|
@TableId(value="id", type= IdType.AUTO)
|
|||
|
|
@Schema(description="主键")
|
|||
|
|
@NotNull(message = "主键不能为空")
|
|||
|
|
private Long id;
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* 水库代码
|
|||
|
|
*/
|
|||
|
|
@TableField(value="res_code")
|
|||
|
|
@Schema(description="水库代码")
|
|||
|
|
@Size(max = 32,message = "水库代码最大长度要小于 32")
|
|||
|
|
@NotBlank(message = "水库代码不能为空")
|
|||
|
|
private String resCode;
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* 管理单位名称
|
|||
|
|
*/
|
|||
|
|
@TableField(value="mang_unit_name")
|
|||
|
|
@Schema(description="管理单位名称")
|
|||
|
|
@Size(max = 50,message = "管理单位名称最大长度要小于 50")
|
|||
|
|
private String mangUnitName;
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* 单位性质(1公益林 2民间组织 3企业 4其他)
|
|||
|
|
*/
|
|||
|
|
@TableField(value="type")
|
|||
|
|
@Schema(description="单位性质(1公益林 2民间组织 3企业 4其他)")
|
|||
|
|
// @Size(max = 0,message = "单位性质(1公益林 2民间组织 3企业 4其他)最大长度要小于 0")
|
|||
|
|
private Integer type;
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* 职工人数
|
|||
|
|
*/
|
|||
|
|
@TableField(value="person_num")
|
|||
|
|
@Schema(description="职工人数")
|
|||
|
|
// @Size(max = 0,message = "职工人数最大长度要小于 0")
|
|||
|
|
private Integer personNum;
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* 人员经费来源
|
|||
|
|
*/
|
|||
|
|
@TableField(value="person_funds_source")
|
|||
|
|
@Schema(description="人员经费来源")
|
|||
|
|
// @Size(max = 0,message = "人员经费来源最大长度要小于 0")
|
|||
|
|
private String personFundsSource;
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* 维修养护经费来源
|
|||
|
|
*/
|
|||
|
|
@TableField(value="repair_funds_source")
|
|||
|
|
@Schema(description="维修养护经费来源")
|
|||
|
|
// @Size(max = 0,message = "维修养护经费来源最大长度要小于 0")
|
|||
|
|
private String repairFundsSource;
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* 行政主管单位
|
|||
|
|
*/
|
|||
|
|
@TableField(value="adm_unit")
|
|||
|
|
@Schema(description="行政主管单位")
|
|||
|
|
@Size(max = 50,message = "行政主管单位最大长度要小于 50")
|
|||
|
|
private String admUnit;
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* 时间戳
|
|||
|
|
*/
|
|||
|
|
@TableField(value="moditime")
|
|||
|
|
@Schema(description="时间戳")
|
|||
|
|
// @Size(max = 0,message = "时间戳最大长度要小于 0")
|
|||
|
|
@JsonFormat(pattern = DateFormatString.YYYY_MM_DD_HH_MM_SS, timezone = "GMT+8")
|
|||
|
|
private Date moditime;
|
|||
|
|
|
|||
|
|
}
|