From bb31ce1fe20fe097dea148a1c4223387a0eacd13 Mon Sep 17 00:00:00 2001 From: wxz Date: Fri, 5 May 2023 17:57:52 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9D=E6=AD=A5=E5=AE=8C=E6=88=90=E6=A6=86?= =?UTF-8?q?=E5=B1=B1=E6=88=BF=E5=B1=8B=E7=A7=9F=E5=94=AE=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E5=8F=91=E5=B8=83=E5=92=8C=E5=AE=A1=E6=A0=B8=E7=9B=B8=E5=85=B3?= =?UTF-8?q?=E6=B5=81=E7=A8=8B=E3=80=82=E6=98=8E=E5=A4=A9=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E4=B8=80=E4=B8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../enums/HouseSaleRentAuditStatusEnum.java | 34 +++++++++++++++++++ .../enums/HouseSaleRentPublishStatusEnum.java | 33 ++++++++++++++++++ .../tools/enums/HouseSaleRentStatusEnum.java | 33 ++++++++++++++++++ 3 files changed, 100 insertions(+) create mode 100644 epdc-commons-tools/src/main/java/com/elink/esua/epdc/commons/tools/enums/HouseSaleRentAuditStatusEnum.java create mode 100644 epdc-commons-tools/src/main/java/com/elink/esua/epdc/commons/tools/enums/HouseSaleRentPublishStatusEnum.java create mode 100644 epdc-commons-tools/src/main/java/com/elink/esua/epdc/commons/tools/enums/HouseSaleRentStatusEnum.java diff --git a/epdc-commons-tools/src/main/java/com/elink/esua/epdc/commons/tools/enums/HouseSaleRentAuditStatusEnum.java b/epdc-commons-tools/src/main/java/com/elink/esua/epdc/commons/tools/enums/HouseSaleRentAuditStatusEnum.java new file mode 100644 index 0000000..458c720 --- /dev/null +++ b/epdc-commons-tools/src/main/java/com/elink/esua/epdc/commons/tools/enums/HouseSaleRentAuditStatusEnum.java @@ -0,0 +1,34 @@ +package com.elink.esua.epdc.commons.tools.enums; + +public enum HouseSaleRentAuditStatusEnum { + + AUDITING(0, "审核中"), + ACCEPT(1, "已通过"), + REJECT(-1, "不通过"); + + private Integer status; + private String desc; + + public static HouseSaleRentAuditStatusEnum getEnumByType(Integer status) { + for (HouseSaleRentAuditStatusEnum e : HouseSaleRentAuditStatusEnum.values()) { + if (e.status.equals(status)) { + return e; + } + } + + return null; + } + + HouseSaleRentAuditStatusEnum(Integer status, String desc) { + this.status = status; + this.desc = desc; + } + + public Integer getStatus() { + return status; + } + + public String getDesc() { + return desc; + } +} diff --git a/epdc-commons-tools/src/main/java/com/elink/esua/epdc/commons/tools/enums/HouseSaleRentPublishStatusEnum.java b/epdc-commons-tools/src/main/java/com/elink/esua/epdc/commons/tools/enums/HouseSaleRentPublishStatusEnum.java new file mode 100644 index 0000000..1a967ad --- /dev/null +++ b/epdc-commons-tools/src/main/java/com/elink/esua/epdc/commons/tools/enums/HouseSaleRentPublishStatusEnum.java @@ -0,0 +1,33 @@ +package com.elink.esua.epdc.commons.tools.enums; + +public enum HouseSaleRentPublishStatusEnum { + + UP(1, "上架"), + DOWN(-1, "下架"); + + private Integer status; + private String desc; + + public static HouseSaleRentPublishStatusEnum getEnumByType(Integer status) { + for (HouseSaleRentPublishStatusEnum e : HouseSaleRentPublishStatusEnum.values()) { + if (e.status.equals(status)) { + return e; + } + } + + return null; + } + + HouseSaleRentPublishStatusEnum(Integer status, String desc) { + this.status = status; + this.desc = desc; + } + + public Integer getStatus() { + return status; + } + + public String getDesc() { + return desc; + } +} diff --git a/epdc-commons-tools/src/main/java/com/elink/esua/epdc/commons/tools/enums/HouseSaleRentStatusEnum.java b/epdc-commons-tools/src/main/java/com/elink/esua/epdc/commons/tools/enums/HouseSaleRentStatusEnum.java new file mode 100644 index 0000000..bbb954c --- /dev/null +++ b/epdc-commons-tools/src/main/java/com/elink/esua/epdc/commons/tools/enums/HouseSaleRentStatusEnum.java @@ -0,0 +1,33 @@ +package com.elink.esua.epdc.commons.tools.enums; + +public enum HouseSaleRentStatusEnum { + + ON_SALE(1, "在售"), + ON_RENT(2, "在租"); + + private Integer status; + private String desc; + + public static HouseSaleRentStatusEnum getEnumByType(Integer status) { + for (HouseSaleRentStatusEnum e : HouseSaleRentStatusEnum.values()) { + if (e.status.equals(status)) { + return e; + } + } + + return null; + } + + HouseSaleRentStatusEnum(Integer status, String desc) { + this.status = status; + this.desc = desc; + } + + public Integer getStatus() { + return status; + } + + public String getDesc() { + return desc; + } +}