解决bug

yun-zuoyi
yunhao.wang 7 years ago
parent 0d6963f36c
commit 4fe87c5ce2

@ -559,7 +559,6 @@ public class CommonEnumUtil {
}
}
/**
*
*/
@ -595,4 +594,39 @@ public class CommonEnumUtil {
}
}
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum CLOUD_STATUS {
REGISTERED(1, "注册"),
DISCONNECT(2, "断开");
private int value;
private String description;
public int getValue() {
return value;
}
public String getDescription() {
return description;
}
private CLOUD_STATUS(int value, String description) {
this.value = value;
this.description = description;
}
public static String valueOf(int val) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].value == val) {
tmp = values()[i].description;
}
}
return tmp;
}
}
}

@ -689,7 +689,7 @@ public class ImppEnumUtil {
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum MESSAGE_TYPE_CONTENT {
HTML(1,"HTML","text/plain;charset=UTF-8"),
HTML(1,"HTML","text/html;charset=UTF-8"),
TEXT(2,"TEXT","text/plain;charset=UTF-8");
private int value;

@ -56,7 +56,7 @@ public class SysMessage extends BaseBean {
private String messageSenderNameRdd;
@Column(name="MESSAGE_RECEIVERS_ID")
@ApiParam(value ="发送者名称" )
@ApiParam(value ="发送者id" )
private String messageReceiversId;
@Column(name="MESSAGE_RECEIVERS_NAME_RDD")

Loading…
Cancel
Save