Commit 2ab9ca11 authored by 赵啸非's avatar 赵啸非

添加消息发送系统

parent 9c744fbb
...@@ -49,7 +49,7 @@ public enum AppSourceEnum { ...@@ -49,7 +49,7 @@ public enum AppSourceEnum {
try { try {
boolean hasE = false; boolean hasE = false;
for (String e : eItem) { for (String e : eItem) {
if (item.getValue() == e) { if (item.getValue() .equals(e)) {
hasE = true; hasE = true;
break; break;
} }
......
...@@ -4,10 +4,10 @@ import java.util.LinkedHashMap; ...@@ -4,10 +4,10 @@ import java.util.LinkedHashMap;
import java.util.Map; import java.util.Map;
/** /**
* 消息类型(等待超时预警,办理超时预警,差评预警)枚举类 * 消息类型(等待超时预警,办理超时预警,差评预警)枚举类
* *
* @author zxfei * @author zxfei
*/ */
public enum MessageTypeEnum { public enum MessageTypeEnum {
等待超时预警("等待超时预警", "等待超时预警"), 等待超时预警("等待超时预警", "等待超时预警"),
办理超时预警("办理超时预警", "办理超时预警"), 办理超时预警("办理超时预警", "办理超时预警"),
...@@ -30,7 +30,7 @@ public enum MessageTypeEnum { ...@@ -30,7 +30,7 @@ public enum MessageTypeEnum {
public static MessageTypeEnum getByValue(String value) { public static MessageTypeEnum getByValue(String value) {
for (MessageTypeEnum messageTypeEnum : MessageTypeEnum.values()) { for (MessageTypeEnum messageTypeEnum : MessageTypeEnum.values()) {
if (messageTypeEnum.getValue() == value) { if (messageTypeEnum.getValue().equals(value)) {
return messageTypeEnum; return messageTypeEnum;
} }
} }
...@@ -49,7 +49,7 @@ public enum MessageTypeEnum { ...@@ -49,7 +49,7 @@ public enum MessageTypeEnum {
try { try {
boolean hasE = false; boolean hasE = false;
for (String e : eItem) { for (String e : eItem) {
if (item.getValue() == e) { if (item.getValue().equals(e)) {
hasE = true; hasE = true;
break; break;
} }
......
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