Commit 8b9989b7 authored by tianbo's avatar tianbo

字典修改

parent 2539c243
......@@ -11,16 +11,16 @@ package com.yeejoin.amos.boot.module.cylinder.api.enums;
*/
public enum CylDictEnum {
withinScope_0 (3141,"0", "withinScope"),
withinScope_1 (3142,"1", "withinScope"),
sealedState_0 (3143,"0", "sealedState"),
sealedState_1 (3144,"1", "sealedState"),
defective_0 (3145,"0", "defective"),
defective_1 (3146,"1", "defective"),
abnormaLTemperature_0 (3147,"0", "abnormaLTemperature"),
abnormaLTemperature_1 (3148,"1", "abnormaLTemperature"),
warningSign_0 (3149,"0", "warningSign"),
warningSign_1 (3150,"1", "warningSign");
withinScope_0 (3141,0, "withinScope"),
withinScope_1 (3142,1, "withinScope"),
sealedState_0 (3143,0, "sealedState"),
sealedState_1 (3144,1, "sealedState"),
defective_0 (3145,0, "defective"),
defective_1 (3146,1, "defective"),
abnormaLTemperature_0 (3147,0, "abnormaLTemperature"),
abnormaLTemperature_1 (3148,1, "abnormaLTemperature"),
warningSign_0 (3149,0, "warningSign"),
warningSign_1 (3150,1, "warningSign");
/**
* 主键
......@@ -30,7 +30,7 @@ public enum CylDictEnum {
/**
* 编码
*/
private String code;
private Integer code;
/**
* key
......@@ -38,7 +38,7 @@ public enum CylDictEnum {
private String key;
// 构造方法
CylDictEnum(Integer seqNbr, String code, String key) {
CylDictEnum(Integer seqNbr, Integer code, String key) {
this.seqNbr = seqNbr;
this.code = code;
this.key = key;
......@@ -48,17 +48,17 @@ public enum CylDictEnum {
return seqNbr;
}
public String getCode()
public Integer getCode()
{
return code;
}
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())
{
......
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