[6.2.6]change trace of fm
This commit is contained in:
@@ -7,6 +7,7 @@ import com.mogo.eagle.core.data.msgbox.MsgBoxType
|
|||||||
import com.mogo.eagle.core.function.api.autopilot.IMoGoFaultManagementStateListener
|
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.base.CallerBase
|
||||||
import com.mogo.eagle.core.function.call.msgbox.CallerMsgBoxManager
|
import com.mogo.eagle.core.function.call.msgbox.CallerMsgBoxManager
|
||||||
|
import com.mogo.eagle.core.function.call.trace.CallerTrace
|
||||||
import fault_management.FmInfo
|
import fault_management.FmInfo
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -52,7 +53,8 @@ object CallerFaultManagementStateListenerManager : CallerBase<IMoGoFaultManageme
|
|||||||
fmFilterInfoMsg.cacheFilterList = cacheFaultList
|
fmFilterInfoMsg.cacheFilterList = cacheFaultList
|
||||||
fmFilterInfoMsg.fmInfoList = list
|
fmFilterInfoMsg.fmInfoList = list
|
||||||
cachePolicyMap[policyCode] = fmFilterInfoMsg
|
cachePolicyMap[policyCode] = fmFilterInfoMsg
|
||||||
CallerMsgBoxManager.saveMsgBox(
|
CallerTrace.write("FaultMsg",fmInfo)
|
||||||
|
CallerMsgBoxManager.saveMsgBoxHasPB(
|
||||||
MsgBoxBean(
|
MsgBoxBean(
|
||||||
MsgBoxType.FMINFO,
|
MsgBoxType.FMINFO,
|
||||||
FMInfoMsg(list, policyCode,policyTime,false)
|
FMInfoMsg(list, policyCode,policyTime,false)
|
||||||
@@ -65,7 +67,8 @@ object CallerFaultManagementStateListenerManager : CallerBase<IMoGoFaultManageme
|
|||||||
cacheFaultList.add(it.faultId)
|
cacheFaultList.add(it.faultId)
|
||||||
}
|
}
|
||||||
cachePolicyMap[policyCode] = FMFilterInfoMsg(list, policyCode, cacheFaultList)
|
cachePolicyMap[policyCode] = FMFilterInfoMsg(list, policyCode, cacheFaultList)
|
||||||
CallerMsgBoxManager.saveMsgBox(
|
CallerTrace.write("FaultMsg",fmInfo)
|
||||||
|
CallerMsgBoxManager.saveMsgBoxHasPB(
|
||||||
MsgBoxBean(
|
MsgBoxBean(
|
||||||
MsgBoxType.FMINFO,
|
MsgBoxType.FMINFO,
|
||||||
FMInfoMsg(list, policyCode,policyTime,false)
|
FMInfoMsg(list, policyCode,policyTime,false)
|
||||||
|
|||||||
@@ -29,6 +29,13 @@ object CallerMsgBoxManager {
|
|||||||
providerApi?.saveMsg(bean)
|
providerApi?.saveMsg(bean)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 存储含有pb的数据到消息盒子(区别与上述方法中的trace write)
|
||||||
|
*/
|
||||||
|
fun saveMsgBoxHasPB(bean: MsgBoxBean){
|
||||||
|
providerApi?.saveMsg(bean)
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 删除所有消息盒子中的数据
|
* 删除所有消息盒子中的数据
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user