2024-07-08 13:18:54 +08:00
|
|
|
package com.gunshi.project.xyt.model;
|
|
|
|
|
|
2024-07-08 17:47:02 +08:00
|
|
|
|
2024-07-08 13:18:54 +08:00
|
|
|
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-10 09:27:20 +08:00
|
|
|
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
|
|
|
|
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
2024-07-08 13:18:54 +08:00
|
|
|
import com.gunshi.core.dateformat.DateFormatString;
|
2024-07-09 09:39:21 +08:00
|
|
|
import com.gunshi.file.model.FileDescriptor;
|
|
|
|
|
import com.gunshi.project.xyt.service.AbstractModelWithAttachService;
|
2024-07-08 13:18:54 +08:00
|
|
|
import io.swagger.v3.oas.annotations.media.Schema;
|
2024-07-08 17:47:02 +08:00
|
|
|
import jakarta.validation.constraints.NotBlank;
|
2024-07-08 13:18:54 +08:00
|
|
|
import jakarta.validation.constraints.Size;
|
|
|
|
|
import lombok.Data;
|
|
|
|
|
|
|
|
|
|
import java.io.Serializable;
|
2024-07-09 11:28:36 +08:00
|
|
|
import java.math.BigDecimal;
|
2024-07-08 13:18:54 +08:00
|
|
|
import java.util.Date;
|
2024-07-09 09:39:21 +08:00
|
|
|
import java.util.List;
|
2024-07-08 13:18:54 +08:00
|
|
|
|
|
|
|
|
/**
|
2024-07-08 17:47:02 +08:00
|
|
|
* 描述: 抢险队伍
|
|
|
|
|
* author: xusan
|
|
|
|
|
* date: 2024-07-08 17:34:26
|
|
|
|
|
*/
|
2024-07-08 13:18:54 +08:00
|
|
|
@Schema(description="抢险队伍")
|
|
|
|
|
@Data
|
2024-07-08 17:47:02 +08:00
|
|
|
@TableName("public.rescue_team_b")
|
2024-07-09 09:39:21 +08:00
|
|
|
public class RescueTeamB implements Serializable, AbstractModelWithAttachService.GetFileIds {
|
2024-07-08 17:47:02 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 主键
|
|
|
|
|
*/
|
|
|
|
|
@TableId(value="team_id", type= IdType.AUTO)
|
|
|
|
|
@Schema(description="主键")
|
|
|
|
|
@NotBlank(message = "主键不能为空")
|
2024-07-10 09:27:20 +08:00
|
|
|
@JsonSerialize(using = ToStringSerializer.class)
|
2024-07-08 17:47:02 +08:00
|
|
|
private Long teamId;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 队伍名称
|
|
|
|
|
*/
|
|
|
|
|
@TableField(value="team_name")
|
|
|
|
|
@Schema(description="队伍名称")
|
|
|
|
|
@Size(max = 100,message = "队伍名称最大长度要小于 100")
|
|
|
|
|
private String teamName;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 地址
|
|
|
|
|
*/
|
|
|
|
|
@TableField(value="address")
|
|
|
|
|
@Schema(description="地址")
|
|
|
|
|
@Size(max = 150,message = "地址最大长度要小于 150")
|
|
|
|
|
private String address;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 经度 (°)
|
|
|
|
|
*/
|
|
|
|
|
@TableField(value="lgtd")
|
|
|
|
|
@Schema(description="经度 (°)")
|
2024-07-09 11:28:36 +08:00
|
|
|
private BigDecimal lgtd;
|
2024-07-08 17:47:02 +08:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 纬度 (°)
|
|
|
|
|
*/
|
|
|
|
|
@TableField(value="lttd")
|
|
|
|
|
@Schema(description="纬度 (°)")
|
2024-07-09 11:28:36 +08:00
|
|
|
private BigDecimal lttd;
|
2024-07-08 17:47:02 +08:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 管理单位
|
|
|
|
|
*/
|
|
|
|
|
@TableField(value="management_unit")
|
|
|
|
|
@Schema(description="管理单位")
|
|
|
|
|
@Size(max = 150,message = "管理单位最大长度要小于 150")
|
|
|
|
|
private String managementUnit;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 队伍负责人
|
|
|
|
|
*/
|
|
|
|
|
@TableField(value="team_leader")
|
|
|
|
|
@Schema(description="队伍负责人")
|
|
|
|
|
@Size(max = 150,message = "队伍负责人最大长度要小于 150")
|
|
|
|
|
private String teamLeader;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 联系电话
|
|
|
|
|
*/
|
|
|
|
|
@TableField(value="phone")
|
|
|
|
|
@Schema(description="联系电话")
|
|
|
|
|
@Size(max = 20,message = "联系电话最大长度要小于 20")
|
|
|
|
|
private String phone;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 登记日期
|
|
|
|
|
*/
|
|
|
|
|
@TableField(value="register_date")
|
|
|
|
|
@Schema(description="登记日期")
|
2024-07-09 11:28:36 +08:00
|
|
|
@JsonFormat(pattern = DateFormatString.YYYY_MM_DD, timezone = "GMT+8")
|
2024-07-08 17:47:02 +08:00
|
|
|
private Date registerDate;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 有效期开始时间
|
|
|
|
|
*/
|
|
|
|
|
@TableField(value="valid_start_date")
|
|
|
|
|
@Schema(description="有效期开始时间")
|
2024-07-09 11:28:36 +08:00
|
|
|
@JsonFormat(pattern = DateFormatString.YYYY_MM_DD, timezone = "GMT+8")
|
2024-07-08 17:47:02 +08:00
|
|
|
private Date validStartDate;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 有效期结束时间
|
|
|
|
|
*/
|
|
|
|
|
@TableField(value="valid_end_date")
|
|
|
|
|
@Schema(description="有效期结束时间")
|
2024-07-09 11:28:36 +08:00
|
|
|
@JsonFormat(pattern = DateFormatString.YYYY_MM_DD, timezone = "GMT+8")
|
2024-07-08 17:47:02 +08:00
|
|
|
private Date validEndDate;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 时间戳
|
|
|
|
|
*/
|
|
|
|
|
@TableField(value="tm")
|
|
|
|
|
@Schema(description="时间戳")
|
|
|
|
|
@NotBlank(message = "时间戳不能为空")
|
|
|
|
|
@JsonFormat(pattern = DateFormatString.YYYY_MM_DD_HH_MM_SS, timezone = "GMT+8")
|
|
|
|
|
private Date tm;
|
2024-07-08 13:18:54 +08:00
|
|
|
|
2024-07-09 09:39:21 +08:00
|
|
|
@TableField(exist = false)
|
|
|
|
|
@Schema(description = "文件id集合")
|
|
|
|
|
private List<String> fileIds;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 文件上传数据
|
|
|
|
|
*/
|
|
|
|
|
@Schema(description="文件上传数据")
|
|
|
|
|
@TableField(exist = false)
|
|
|
|
|
private List<FileDescriptor> files;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 队伍明细
|
|
|
|
|
*/
|
|
|
|
|
@Schema(description="队伍明细")
|
|
|
|
|
@TableField(exist = false)
|
|
|
|
|
private List<RescueTeamDetail> details;
|
|
|
|
|
|
2024-07-08 13:18:54 +08:00
|
|
|
}
|