## 部分枚举去掉国际化;
This commit is contained in:
parent
dd859d7966
commit
8079e50a01
|
@ -533,13 +533,6 @@ public class EnumsInitController {
|
|||
initList.add(this.createData(value.getKey(), value.getLabel()));
|
||||
}
|
||||
|
||||
/**
|
||||
* 证件类型
|
||||
*/
|
||||
for (EIdType value : EIdType.values()) {
|
||||
initList.add(this.createData(value.getKey(), value.getLabel()));
|
||||
}
|
||||
|
||||
/**
|
||||
* 只读状态
|
||||
*/
|
||||
|
|
|
@ -1,19 +1,11 @@
|
|||
package com.hzs.common.core.enums;
|
||||
|
||||
import com.hzs.common.core.constant.EnumsPrefixConstants;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
|
||||
/**
|
||||
* 证件类型
|
||||
*
|
||||
* @Description:
|
||||
* @Author: ljc
|
||||
* @Time: 2023/4/17 14:36
|
||||
* @Classname: EIdType
|
||||
* @Package_name: com.hzs.common.core.enums
|
||||
*/
|
||||
|
||||
@AllArgsConstructor
|
||||
@Getter
|
||||
public enum EIdType {
|
||||
|
@ -21,7 +13,7 @@ public enum EIdType {
|
|||
/**
|
||||
* 身份证
|
||||
*/
|
||||
ID_CARD(1, "身份证", 0, EnumsPrefixConstants.ID_TYPE + "1");
|
||||
ID_CARD(1, "身份证", 0);
|
||||
|
||||
/**
|
||||
* 实际值
|
||||
|
@ -35,10 +27,6 @@ public enum EIdType {
|
|||
* 是否启用(0=是,1=否) -- 来源EYesNo
|
||||
*/
|
||||
private final int enable;
|
||||
/**
|
||||
* 国际化翻译key值
|
||||
*/
|
||||
private final String key;
|
||||
|
||||
public static String getLabelByValue(Integer value) {
|
||||
if (null == value) {
|
||||
|
|
Loading…
Reference in New Issue