Commit 6f517b6c LN

1

1 个父辈 a6c5b086
...@@ -61,21 +61,17 @@ public class MessageUtils { ...@@ -61,21 +61,17 @@ public class MessageUtils {
private static Map<String,Map<String, LanguageMsg>> msgMap = new HashMap<>(); private static Map<String,Map<String, LanguageMsg>> msgMap = new HashMap<>();
@Autowired private static ILanguageMsgManager languageMsgManager;
private static ILanguageMsgManager languageMsgManager;
@Autowired
private static DataCache dataCache; private static DataCache dataCache;
@Autowired
private static LanguageMsgService messageService; private static LanguageMsgService messageService;
@Autowired @Autowired
void setLanguageMsgManager(ILanguageMsgManager languageMsgManager) { void setLanguageMsgManager(ILanguageMsgManager languageMsgManager) {
MessageUtils.languageMsgManager = languageMsgManager; MessageUtils.languageMsgManager = languageMsgManager;
} }
@Autowired @Autowired
void SetDataCache(DataCache dataCache) { void SetDataCache(DataCache dataCache) {
MessageUtils.dataCache = dataCache; MessageUtils.dataCache = dataCache;
} }
@Autowired @Autowired
......
...@@ -98,9 +98,7 @@ public class DeviceMessageUtil { ...@@ -98,9 +98,7 @@ public class DeviceMessageUtil {
code=MessageUtils.smfcore+"."+msgCode; code=MessageUtils.smfcore+"."+msgCode;
} }
} }
if(ObjectUtil.isEmpty(almType)&&ObjectUtil.isNotEmpty(msgCode)){
almType=msgCode;
}
Message message=Message.newMsg(msgType ,deviceInfo.getName(), deviceInfo.getId(), moudle, code,msg,msgParam,almType,almCode); Message message=Message.newMsg(msgType ,deviceInfo.getName(), deviceInfo.getId(), moudle, code,msg,msgParam,almType,almCode);
messageManager.save(message); messageManager.save(message);
} }
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!