13 changed files with 164 additions and 32 deletions
@ -0,0 +1,55 @@ |
|||||
|
package com.epmet.commons.tools.enums; |
||||
|
|
||||
|
/** |
||||
|
* @author Administrator |
||||
|
*/ |
||||
|
public enum DictTypeEnum { |
||||
|
/** |
||||
|
* 环境变量枚举 |
||||
|
*/ |
||||
|
UN_KNOWN("un_know", "暂不清楚", 0), |
||||
|
NINE_SMALL_PLACES("nine_small_places", "九小场所", 1), |
||||
|
EDUCATION("education", "文化程度", 2), |
||||
|
NATION("nation", "民族", 3), |
||||
|
RELATIONSHIP("relationship", "与户主关系", 4), |
||||
|
HOUSE("house", "住房性质", 5), |
||||
|
SCALE("scale", "人员规模", 6), |
||||
|
PARTY_UNIT_TYPE("party_unit_type", "联建单位分类", 7), |
||||
|
GENDER("gender", "性别", 8), |
||||
|
; |
||||
|
|
||||
|
private final String code; |
||||
|
private final String name; |
||||
|
private final Integer sort; |
||||
|
|
||||
|
|
||||
|
|
||||
|
DictTypeEnum(String code, String name, Integer sort) { |
||||
|
this.code = code; |
||||
|
this.name = name; |
||||
|
this.sort = sort; |
||||
|
} |
||||
|
|
||||
|
public static DictTypeEnum getEnum(String code) { |
||||
|
DictTypeEnum[] values = DictTypeEnum.values(); |
||||
|
for (DictTypeEnum value : values) { |
||||
|
if (value.getCode().equals(code)) { |
||||
|
return value; |
||||
|
} |
||||
|
} |
||||
|
return DictTypeEnum.UN_KNOWN; |
||||
|
} |
||||
|
|
||||
|
|
||||
|
public String getCode() { |
||||
|
return code; |
||||
|
} |
||||
|
|
||||
|
public String getName() { |
||||
|
return name; |
||||
|
} |
||||
|
|
||||
|
public Integer getSort(){ |
||||
|
return sort; |
||||
|
} |
||||
|
} |
@ -0,0 +1,26 @@ |
|||||
|
package com.epmet.dto.form; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
import lombok.NoArgsConstructor; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
|
||||
|
/** |
||||
|
* @Description |
||||
|
* @Author zhaoqifeng |
||||
|
* @Date 2021/11/19 16:19 |
||||
|
*/ |
||||
|
@NoArgsConstructor |
||||
|
@Data |
||||
|
public class PartyUnitFormDTO implements Serializable { |
||||
|
|
||||
|
private static final long serialVersionUID = 1256798619648265622L; |
||||
|
private String agencyId; |
||||
|
private String unitName; |
||||
|
private String serviceMatter; |
||||
|
private String type; |
||||
|
private String contact; |
||||
|
private String contactMobile; |
||||
|
private Integer pageNo; |
||||
|
private Integer pageSize; |
||||
|
} |
Loading…
Reference in new issue