2024-07-17 17:38:06 +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-07-30 17:52:25 +08:00
|
|
|
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
|
|
|
|
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
2024-07-17 17:38:06 +08:00
|
|
|
import com.gunshi.core.dateformat.DateFormatString;
|
|
|
|
|
import io.swagger.v3.oas.annotations.media.Schema;
|
|
|
|
|
import jakarta.validation.constraints.NotBlank;
|
|
|
|
|
import jakarta.validation.constraints.Size;
|
|
|
|
|
import lombok.Data;
|
|
|
|
|
|
|
|
|
|
import java.io.Serializable;
|
|
|
|
|
import java.util.Date;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 描述: 文件关联业务表
|
|
|
|
|
* author: xusan
|
|
|
|
|
* date: 2024-07-17 10:09:40
|
|
|
|
|
*/
|
|
|
|
|
@Schema(description="文件关联业务表")
|
|
|
|
|
@Data
|
|
|
|
|
@TableName("public.file_associations")
|
|
|
|
|
public class FileAssociations implements Serializable {
|
|
|
|
|
|
|
|
|
|
public final static String thisTableName = "file_associations";
|
|
|
|
|
|
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 主键
|
|
|
|
|
*/
|
|
|
|
|
@TableId(value="id", type= IdType.AUTO)
|
|
|
|
|
@Schema(description="主键")
|
|
|
|
|
@NotBlank(message = "主键不能为空")
|
2024-07-30 17:52:25 +08:00
|
|
|
@JsonSerialize(using = ToStringSerializer.class)
|
2024-07-17 17:38:06 +08:00
|
|
|
private Long id;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 业务id
|
|
|
|
|
*/
|
|
|
|
|
@TableField(value="business_id")
|
|
|
|
|
@Schema(description="业务id")
|
|
|
|
|
@NotBlank(message = "业务id不能为空")
|
|
|
|
|
private String businessId;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 文件id
|
|
|
|
|
*/
|
|
|
|
|
@TableField(value="file_id")
|
|
|
|
|
@Schema(description="文件id")
|
|
|
|
|
@NotBlank(message = "文件id不能为空")
|
2024-07-30 17:52:25 +08:00
|
|
|
@JsonSerialize(using = ToStringSerializer.class)
|
2024-07-17 17:38:06 +08:00
|
|
|
private Long fileId;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 序号
|
|
|
|
|
*/
|
|
|
|
|
@TableField(value="sort_on")
|
|
|
|
|
@Schema(description="序号")
|
|
|
|
|
private Integer sortOn;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 时间戳
|
|
|
|
|
*/
|
|
|
|
|
@TableField(value="tm")
|
|
|
|
|
@Schema(description="时间戳")
|
|
|
|
|
@NotBlank(message = "时间戳不能为空")
|
|
|
|
|
@JsonFormat(pattern = DateFormatString.YYYY_MM_DD_HH_MM_SS, timezone = "GMT+8")
|
|
|
|
|
private Date tm;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 业务表名
|
|
|
|
|
*/
|
|
|
|
|
@TableField(value="table_name")
|
|
|
|
|
@Schema(description="业务表名")
|
|
|
|
|
@Size(max = 255,message = "业务表名最大长度要小于 255")
|
|
|
|
|
@NotBlank(message = "业务表名不能为空")
|
|
|
|
|
private String tableName;
|
|
|
|
|
/**
|
|
|
|
|
* 业务表名
|
|
|
|
|
*/
|
|
|
|
|
@TableField(value="del")
|
|
|
|
|
@Size(max = 1,message = "删除标识最大长度要小于 2")
|
2024-08-14 17:09:58 +08:00
|
|
|
@Schema(description="删除标识1: 未删除,0:已删除")
|
2024-07-17 17:38:06 +08:00
|
|
|
@NotBlank(message = "删除标识不能为空")
|
|
|
|
|
private String del;
|
|
|
|
|
|
|
|
|
|
|
2024-07-19 15:59:32 +08:00
|
|
|
@TableField(value = "type")
|
2024-07-22 17:11:26 +08:00
|
|
|
@Schema(description = "业务文件类型 0:水库基本信息-工程基础信息-工程特性表,1:水库基本信息-设计图纸和资料")
|
2024-07-19 15:59:32 +08:00
|
|
|
private String type;
|
|
|
|
|
|
|
|
|
|
|
2024-07-17 17:38:06 +08:00
|
|
|
@TableField(exist = false)
|
|
|
|
|
@Schema(description = "文件路径")
|
|
|
|
|
private String filePath;
|
|
|
|
|
|
|
|
|
|
@TableField(exist = false)
|
|
|
|
|
@Schema(description = "文件名称")
|
|
|
|
|
private String fileName;
|
|
|
|
|
|
2024-08-13 15:03:45 +08:00
|
|
|
@TableField(exist = false)
|
|
|
|
|
@Schema(description = "文件大小 (byte)")
|
|
|
|
|
private String fileSize;
|
|
|
|
|
|
2024-07-17 17:38:06 +08:00
|
|
|
}
|