From 803f2e61488b2fd5c17d64ed9f03e194a3abc8db Mon Sep 17 00:00:00 2001 From: "DESKTOP-4U0TDEF\\20371" <2037158277@qq.com> Date: Thu, 15 Jul 2021 16:02:32 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9B=E5=BB=BA=E4=BA=86=E6=8A=A4=E6=9E=97?= =?UTF-8?q?=E5=91=98=E5=92=8C=E7=81=AB=E7=82=B9=E7=9A=84=E4=B8=AD=E9=97=B4?= =?UTF-8?q?=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/xkrs/model/entity/FireAndRanger.java | 151 ++++++++++++++++++ 1 file changed, 151 insertions(+) create mode 100644 src/main/java/com/xkrs/model/entity/FireAndRanger.java diff --git a/src/main/java/com/xkrs/model/entity/FireAndRanger.java b/src/main/java/com/xkrs/model/entity/FireAndRanger.java new file mode 100644 index 0000000..ea549bf --- /dev/null +++ b/src/main/java/com/xkrs/model/entity/FireAndRanger.java @@ -0,0 +1,151 @@ +package com.xkrs.model.entity; + +import javax.persistence.*; + +/** + * 护林员和火点中间表 + * @author xkrs + */ +@Entity +@Table(name="fire_and_ranger") +public class FireAndRanger { + + /** + * 主键id + */ + @Id + @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "fire_and_ranger_seq_gen") + @SequenceGenerator(name = "fire_and_ranger_seq_gen", sequenceName = "fire_and_ranger_id_seq",allocationSize = 1) + private Integer id; + + /** + * 护林员的账号(手机号作为和火点的标识) + */ + @Column(length = 65, columnDefinition = "varchar(65)") + private String rangerName; + + /** + * 火点编码 + */ + @Column(length = 65, columnDefinition = "varchar(65)") + private String fireCode; + + /** + * 处理人 + */ + @Column(length = 65, columnDefinition = "varchar(65)") + private String handler; + + /** + * 核查人 + */ + @Column(length = 65, columnDefinition = "varchar(65)") + private String verifier; + + /** + * 处理时间(核查时间) + */ + @Column(length = 65, columnDefinition = "varchar(65)") + private String handlerTime; + + /** + * 结束时间 + */ + @Column(length = 65, columnDefinition = "varchar(65)") + private String endTime; + + @Column(length = 32, columnDefinition = "varchar(32)") + private String progressType; + + public FireAndRanger() { + } + + public FireAndRanger(Integer id, String rangerName, String fireCode, String handler, String verifier, String handlerTime, String endTime, String progressType) { + this.id = id; + this.rangerName = rangerName; + this.fireCode = fireCode; + this.handler = handler; + this.verifier = verifier; + this.handlerTime = handlerTime; + this.endTime = endTime; + this.progressType = progressType; + } + + public Integer getId() { + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public String getRangerName() { + return rangerName; + } + + public void setRangerName(String rangerName) { + this.rangerName = rangerName; + } + + public String getFireCode() { + return fireCode; + } + + public void setFireCode(String fireCode) { + this.fireCode = fireCode; + } + + public String getHandler() { + return handler; + } + + public void setHandler(String handler) { + this.handler = handler; + } + + public String getVerifier() { + return verifier; + } + + public void setVerifier(String verifier) { + this.verifier = verifier; + } + + public String getHandlerTime() { + return handlerTime; + } + + public void setHandlerTime(String handlerTime) { + this.handlerTime = handlerTime; + } + + public String getEndTime() { + return endTime; + } + + public void setEndTime(String endTime) { + this.endTime = endTime; + } + + public String getProgressType() { + return progressType; + } + + public void setProgressType(String progressType) { + this.progressType = progressType; + } + + @Override + public String toString() { + return "FireAndRanger{" + + "id=" + id + + ", rangerName='" + rangerName + '\'' + + ", fireCode='" + fireCode + '\'' + + ", handler='" + handler + '\'' + + ", verifier='" + verifier + '\'' + + ", handlerTime='" + handlerTime + '\'' + + ", endTime='" + endTime + '\'' + + ", progressType='" + progressType + '\'' + + '}'; + } +}