[6.4.0]事件和FM故障信息交互优化
This commit is contained in:
@@ -4,6 +4,7 @@ import com.mogo.eagle.core.data.msgbox.FMFilterInfoMsg
|
||||
import com.mogo.eagle.core.data.msgbox.FMInfoMsg
|
||||
import com.mogo.eagle.core.data.msgbox.MsgBoxBean
|
||||
import com.mogo.eagle.core.data.msgbox.MsgBoxType
|
||||
import com.mogo.eagle.core.data.msgbox.MsgFmData
|
||||
import com.mogo.eagle.core.function.api.autopilot.IMoGoFaultManagementStateListener
|
||||
import com.mogo.eagle.core.function.call.base.CallerBase
|
||||
import com.mogo.eagle.core.function.call.msgbox.CallerMsgBoxManager
|
||||
@@ -39,7 +40,11 @@ object CallerFaultManagementStateListenerManager : CallerBase<IMoGoFaultManageme
|
||||
//判断两个集合重复 true:return
|
||||
var sameResult = false
|
||||
list.forEach {
|
||||
sameResult = fmFilterInfoMsg.cacheFilterList?.contains(it.faultId) == true
|
||||
if(fmFilterInfoMsg.cacheFilterList?.contains(it.faultId) == true){
|
||||
if(System.currentTimeMillis()-fmFilterInfoMsg.receiveTime < 10*60*1000){
|
||||
sameResult = true
|
||||
}
|
||||
}
|
||||
}
|
||||
if (sameResult) {
|
||||
return
|
||||
@@ -52,6 +57,7 @@ object CallerFaultManagementStateListenerManager : CallerBase<IMoGoFaultManageme
|
||||
fmFilterInfoMsg.cacheFilterList?.clear()
|
||||
fmFilterInfoMsg.cacheFilterList = cacheFaultList
|
||||
fmFilterInfoMsg.fmInfoList = list
|
||||
fmFilterInfoMsg.receiveTime = System.currentTimeMillis()
|
||||
cachePolicyMap[policyCode] = fmFilterInfoMsg
|
||||
CallerTrace.write("FaultMsg",fmInfo)
|
||||
CallerMsgBoxManager.saveMsgBoxHasPB(
|
||||
@@ -66,7 +72,7 @@ object CallerFaultManagementStateListenerManager : CallerBase<IMoGoFaultManageme
|
||||
list.forEach {
|
||||
cacheFaultList.add(it.faultId)
|
||||
}
|
||||
cachePolicyMap[policyCode] = FMFilterInfoMsg(list, policyCode, cacheFaultList)
|
||||
cachePolicyMap[policyCode] = FMFilterInfoMsg(list, policyCode, cacheFaultList,System.currentTimeMillis())
|
||||
CallerTrace.write("FaultMsg",fmInfo)
|
||||
CallerMsgBoxManager.saveMsgBoxHasPB(
|
||||
MsgBoxBean(
|
||||
|
||||
Reference in New Issue
Block a user