177 lines
5.0 KiB
Java
177 lines
5.0 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 com.gunshi.project.ss.common.validate.markers.Update;
|
||
|
|
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;
|
||
|
|
import java.util.List;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 描述: 闸阀信息表
|
||
|
|
* author: xusan
|
||
|
|
* date: 2024-07-08 17:34:26
|
||
|
|
*/
|
||
|
|
@Schema(description="闸阀信息表")
|
||
|
|
@Data
|
||
|
|
@TableName("public.att_gate_valve")
|
||
|
|
public class AttGateValve implements Serializable {
|
||
|
|
|
||
|
|
|
||
|
|
private static final long serialVersionUID = 1L;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 闸阀编码
|
||
|
|
*/
|
||
|
|
@TableId(value="valve_code", type= IdType.AUTO)
|
||
|
|
@Schema(description="闸阀编码")
|
||
|
|
@Size(max = 20,message = "闸阀编码最大长度要小于 32")
|
||
|
|
@NotBlank(message = "闸阀编码不能为空",groups = {Update.class})
|
||
|
|
private String valveCode;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 闸阀名称
|
||
|
|
*/
|
||
|
|
@TableField(value="valve_name")
|
||
|
|
@Schema(description="闸阀名称")
|
||
|
|
@Size(max = 200,message = "闸阀名称最大长度要小于 200")
|
||
|
|
private String valveName;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 所在位置
|
||
|
|
*/
|
||
|
|
@TableField(value="gtlc")
|
||
|
|
@Schema(description="所在位置")
|
||
|
|
@Size(max = 200,message = "所在位置最大长度要小于 200")
|
||
|
|
private String gtlc;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 经度
|
||
|
|
*/
|
||
|
|
@TableField(value="lgtd")
|
||
|
|
@Schema(description="经度")
|
||
|
|
private String lgtd;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 纬度
|
||
|
|
*/
|
||
|
|
@TableField(value="lttd")
|
||
|
|
@Schema(description="纬度")
|
||
|
|
private String lttd;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 产品类型 dict_id
|
||
|
|
*/
|
||
|
|
@TableField(value="type")
|
||
|
|
@Schema(description="产品类型 dict_id")
|
||
|
|
private Long type;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 产品型号
|
||
|
|
*/
|
||
|
|
@TableField(value="model")
|
||
|
|
@Schema(description="产品型号")
|
||
|
|
@Size(max = 200,message = "产品型号最大长度要小于 200")
|
||
|
|
private String model;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 产品规格
|
||
|
|
*/
|
||
|
|
@TableField(value="spe")
|
||
|
|
@Schema(description="产品规格")
|
||
|
|
@Size(max = 200,message = "产品规格最大长度要小于 200")
|
||
|
|
private String spe;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 结构长度
|
||
|
|
*/
|
||
|
|
@TableField(value="len")
|
||
|
|
@Schema(description="结构长度")
|
||
|
|
@Size(max = 200,message = "结构长度最大长度要小于 200")
|
||
|
|
private String len;
|
||
|
|
/**
|
||
|
|
* 概化图X
|
||
|
|
*/
|
||
|
|
@TableField(value="img_x")
|
||
|
|
@Schema(description="概化图X")
|
||
|
|
@Size(max = 200,message = "概化图X最大长度要小于 200")
|
||
|
|
private String imgX;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 概化图Y
|
||
|
|
*/
|
||
|
|
@TableField(value="img_y")
|
||
|
|
@Schema(description="概化图Y")
|
||
|
|
@Size(max = 200,message = "概化图Y最大长度要小于 200")
|
||
|
|
private String imgY;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* remark
|
||
|
|
*/
|
||
|
|
@TableField(value="remark")
|
||
|
|
@Schema(description="remark")
|
||
|
|
@Size(max = 250,message = "remark最大长度要小于 250")
|
||
|
|
private String remark;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* create_time
|
||
|
|
*/
|
||
|
|
@TableField(value="create_time")
|
||
|
|
@Schema(description="create_time")
|
||
|
|
@JsonFormat(pattern = DateFormatString.YYYY_MM_DD_HH_MM_SS, timezone = "GMT+8")
|
||
|
|
private Date createTime;
|
||
|
|
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 法兰尺寸
|
||
|
|
*/
|
||
|
|
@TableField(value="flange_len")
|
||
|
|
@Schema(description="法兰尺寸")
|
||
|
|
@Size(max = 200,message = "法兰尺寸最大长度要小于 200")
|
||
|
|
private String flangeLen;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 生产厂家
|
||
|
|
*/
|
||
|
|
@TableField(value="manufacturer")
|
||
|
|
@Schema(description="生产厂家")
|
||
|
|
@Size(max = 200,message = "生产厂家最大长度要小于 200")
|
||
|
|
private String manufacturer;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 联系电话
|
||
|
|
*/
|
||
|
|
@TableField(value="contact_cell")
|
||
|
|
@Schema(description="联系电话")
|
||
|
|
@Size(max = 200,message = "联系电话最大长度要小于 200")
|
||
|
|
private String contactCell;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 联系人
|
||
|
|
*/
|
||
|
|
@TableField(value="contacts")
|
||
|
|
@Schema(description="联系人")
|
||
|
|
@Size(max = 200,message = "联系人最大长度要小于 200")
|
||
|
|
private String contacts;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 是否可手动控制
|
||
|
|
*/
|
||
|
|
@TableField(value="manual_operation")
|
||
|
|
@Schema(description="是否可手动控制")
|
||
|
|
private Boolean manualOperation;
|
||
|
|
|
||
|
|
@TableField(exist = false)
|
||
|
|
@Schema(description = "文件集合")
|
||
|
|
private List<FileAssociations> files;
|
||
|
|
}
|