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;
} }
} }
...@@ -38,18 +38,18 @@ public enum MessageTypeEnum { ...@@ -38,18 +38,18 @@ public enum MessageTypeEnum {
} }
/** /**
* 获取Map集合 * 获取Map集合
* *
* @param eItem 不包含项 * @param eItem 不包含项
* @return * @return
*/ */
public static Map<String, String> getEnumMap(String... eItem) { public static Map<String, String> getEnumMap(String... eItem) {
Map<String, String> resultMap = new LinkedHashMap<>(); Map<String, String> resultMap = new LinkedHashMap<>();
for (MessageTypeEnum item : MessageTypeEnum.values()) { for (MessageTypeEnum item : MessageTypeEnum.values()) {
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