From 9856b451b2b3aae7d8eab7a2a6974f24b1c21b8a Mon Sep 17 00:00:00 2001 From: yinzuomei <576302893@qq.com> Date: Thu, 18 May 2023 14:53:47 +0800 Subject: [PATCH] =?UTF-8?q?LingShanHelpCrowdTypeEnum=E9=87=8D=E7=82=B9?= =?UTF-8?q?=E5=B8=AE=E6=89=B6=E4=BA=BA=E5=91=98=E7=B1=BB=E5=88=AB=E6=9E=9A?= =?UTF-8?q?=E4=B8=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../enums/LingShanHelpCrowdTypeEnum.java | 49 +++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 epmet-user/epmet-user-client/src/main/java/com/epmet/enums/LingShanHelpCrowdTypeEnum.java diff --git a/epmet-user/epmet-user-client/src/main/java/com/epmet/enums/LingShanHelpCrowdTypeEnum.java b/epmet-user/epmet-user-client/src/main/java/com/epmet/enums/LingShanHelpCrowdTypeEnum.java new file mode 100644 index 0000000000..2afb9ba901 --- /dev/null +++ b/epmet-user/epmet-user-client/src/main/java/com/epmet/enums/LingShanHelpCrowdTypeEnum.java @@ -0,0 +1,49 @@ +package com.epmet.enums; + +public enum LingShanHelpCrowdTypeEnum { + // 人员类别。【canji残疾人,dabing大病,dibao低保,gaoling高龄老人,kongchao空巢老人,duju独居老人,liushou留守儿童, tekun特困人员】 + + CANJI("canji", "残疾", 1), + DABING("dabing", "大病", 2), + DIBAO("dibao", "低保", 3), + GAOLING("gaoling", "高龄老人", 4), + KONGCHAO("kongchao", "空巢老人", 5), + DUJU("duju", "独居老人", 6), + LIUSHOU("liushou", "留守儿童", 7), + TEKUN("tekun", "特困人员", 8); + + /** + * 类型。anzhibangjiao, + */ + public final String type; + public final String name; + + private Integer headerRowNumber; + + LingShanHelpCrowdTypeEnum(String type, String name, Integer headerRowNumber) { + this.type = type; + this.name = name; + this.headerRowNumber = headerRowNumber; + } + + public String getType() { + return type; + } + + public String getName() { + return name; + } + + public Integer getHeaderRowNumber() { + return headerRowNumber; + } + + public static LingShanHelpCrowdTypeEnum getByType(String type) { + for (LingShanHelpCrowdTypeEnum e : LingShanHelpCrowdTypeEnum.values()) { + if (e.getType().equals(type)) { + return e; + } + } + return null; + } +}