Commit 8b9989b7 authored by tianbo's avatar tianbo

字典修改

parent 2539c243
...@@ -11,16 +11,16 @@ package com.yeejoin.amos.boot.module.cylinder.api.enums; ...@@ -11,16 +11,16 @@ package com.yeejoin.amos.boot.module.cylinder.api.enums;
*/ */
public enum CylDictEnum { public enum CylDictEnum {
withinScope_0 (3141,"0", "withinScope"), withinScope_0 (3141,0, "withinScope"),
withinScope_1 (3142,"1", "withinScope"), withinScope_1 (3142,1, "withinScope"),
sealedState_0 (3143,"0", "sealedState"), sealedState_0 (3143,0, "sealedState"),
sealedState_1 (3144,"1", "sealedState"), sealedState_1 (3144,1, "sealedState"),
defective_0 (3145,"0", "defective"), defective_0 (3145,0, "defective"),
defective_1 (3146,"1", "defective"), defective_1 (3146,1, "defective"),
abnormaLTemperature_0 (3147,"0", "abnormaLTemperature"), abnormaLTemperature_0 (3147,0, "abnormaLTemperature"),
abnormaLTemperature_1 (3148,"1", "abnormaLTemperature"), abnormaLTemperature_1 (3148,1, "abnormaLTemperature"),
warningSign_0 (3149,"0", "warningSign"), warningSign_0 (3149,0, "warningSign"),
warningSign_1 (3150,"1", "warningSign"); warningSign_1 (3150,1, "warningSign");
/** /**
* 主键 * 主键
...@@ -30,7 +30,7 @@ public enum CylDictEnum { ...@@ -30,7 +30,7 @@ public enum CylDictEnum {
/** /**
* 编码 * 编码
*/ */
private String code; private Integer code;
/** /**
* key * key
...@@ -38,7 +38,7 @@ public enum CylDictEnum { ...@@ -38,7 +38,7 @@ public enum CylDictEnum {
private String key; private String key;
// 构造方法 // 构造方法
CylDictEnum(Integer seqNbr, String code, String key) { CylDictEnum(Integer seqNbr, Integer code, String key) {
this.seqNbr = seqNbr; this.seqNbr = seqNbr;
this.code = code; this.code = code;
this.key = key; this.key = key;
...@@ -48,17 +48,17 @@ public enum CylDictEnum { ...@@ -48,17 +48,17 @@ public enum CylDictEnum {
return seqNbr; return seqNbr;
} }
public String getCode() public Integer getCode()
{ {
return code; return code;
} }
public String getKey() public String getKey()
{ {
return code; return key;
} }
public static CylDictEnum getEnum(String code, String key) public static CylDictEnum getEnum(Integer code, String key)
{ {
for (CylDictEnum cylDictEnum : CylDictEnum.values()) for (CylDictEnum cylDictEnum : CylDictEnum.values())
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment