From c0b1108e141b5bf93d079d05ea33c62340361e48 Mon Sep 17 00:00:00 2001 From: "DESKTOP-4U0TDEF\\20371" <2037158277@qq.com> Date: Thu, 15 Jul 2021 16:17:48 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9B=E5=BB=BA=E4=BA=86=E4=BB=BB=E5=8A=A1?= =?UTF-8?q?=E8=A1=A8=E5=92=8C=E4=BB=BB=E5=8A=A1=E5=9B=BE=E7=89=87=E4=B8=AD?= =?UTF-8?q?=E9=97=B4=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/xkrs/model/entity/FireTask.java | 91 +++++++++++++++++++ .../com/xkrs/model/entity/FireTaskPhoto.java | 74 +++++++++++++++ 2 files changed, 165 insertions(+) create mode 100644 src/main/java/com/xkrs/model/entity/FireTask.java create mode 100644 src/main/java/com/xkrs/model/entity/FireTaskPhoto.java diff --git a/src/main/java/com/xkrs/model/entity/FireTask.java b/src/main/java/com/xkrs/model/entity/FireTask.java new file mode 100644 index 0000000..e588755 --- /dev/null +++ b/src/main/java/com/xkrs/model/entity/FireTask.java @@ -0,0 +1,91 @@ +package com.xkrs.model.entity; + +import javax.persistence.*; +import java.io.Serializable; + +/** + * @author xkrs + * 任务表 + */ +@Entity +@Table(name = "fire_task") +public class FireTask implements Serializable { + + /** + * id 主键 + */ + @Id + @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "fire_task_seq_gen") + @SequenceGenerator(name = "fire_task_seq_gen", sequenceName = "fire_task_id_seq",allocationSize = 1) + private Integer id; + + /** + * 火点编码 + */ + @Column(length = 65, columnDefinition = "varchar(65)") + private String taskFireCode; + + /** + * 任务描述 + */ + @Column(length = 2000, columnDefinition = "varchar(2000)") + private String taskInformation; + + /** + * 提交任务的时间 + */ + @Column(length = 65, columnDefinition = "varchar(65)") + private String taskTime; + + public FireTask() { + } + + public FireTask(Integer id, String taskFireCode, String taskInformation, String taskTime) { + this.id = id; + this.taskFireCode = taskFireCode; + this.taskInformation = taskInformation; + this.taskTime = taskTime; + } + + public Integer getId() { + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public String getTaskFireCode() { + return taskFireCode; + } + + public void setTaskFireCode(String taskFireCode) { + this.taskFireCode = taskFireCode; + } + + public String getTaskInformation() { + return taskInformation; + } + + public void setTaskInformation(String taskInformation) { + this.taskInformation = taskInformation; + } + + public String getTaskTime() { + return taskTime; + } + + public void setTaskTime(String taskTime) { + this.taskTime = taskTime; + } + + @Override + public String toString() { + return "FireTask{" + + "id=" + id + + ", taskFireCode='" + taskFireCode + '\'' + + ", taskInformation='" + taskInformation + '\'' + + ", taskTime='" + taskTime + '\'' + + '}'; + } +} diff --git a/src/main/java/com/xkrs/model/entity/FireTaskPhoto.java b/src/main/java/com/xkrs/model/entity/FireTaskPhoto.java new file mode 100644 index 0000000..3113346 --- /dev/null +++ b/src/main/java/com/xkrs/model/entity/FireTaskPhoto.java @@ -0,0 +1,74 @@ +package com.xkrs.model.entity; + +import javax.persistence.*; +import java.io.Serializable; + +/** + * @author xkrs + * 任务和图片中间表 + */ +@Entity +@Table(name = "fire_task_photo") +public class FireTaskPhoto implements Serializable { + /** + * id 主键 + */ + @Id + @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "fire_task_photo_seq_gen") + @SequenceGenerator(name = "fire_task_photo_seq_gen", sequenceName = "fire_task_photo_id_seq",allocationSize = 1) + private Integer id; + + /** + * 火点编码 + */ + @Column(length = 65, columnDefinition = "varchar(65)") + private String photoFireCode; + + /** + * 任务图片链接 + */ + @Column(length = 85, columnDefinition = "varchar(85)") + private String taskPhoto; + + public FireTaskPhoto() { + } + + public FireTaskPhoto(Integer id, String photoFireCode, String taskPhoto) { + this.id = id; + this.photoFireCode = photoFireCode; + this.taskPhoto = taskPhoto; + } + + public Integer getId() { + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public String getPhotoFireCode() { + return photoFireCode; + } + + public void setPhotoFireCode(String photoFireCode) { + this.photoFireCode = photoFireCode; + } + + public String getTaskPhoto() { + return taskPhoto; + } + + public void setTaskPhoto(String taskPhoto) { + this.taskPhoto = taskPhoto; + } + + @Override + public String toString() { + return "FireTaskPhoto{" + + "id=" + id + + ", photoFireCode='" + photoFireCode + '\'' + + ", taskPhoto='" + taskPhoto + '\'' + + '}'; + } +}