[6.2.6]change trace of fm

This commit is contained in:
EmArrow
2023-12-22 19:20:30 +08:00
parent acdcde8caf
commit c1a3aecff8
2 changed files with 12 additions and 2 deletions

View File

@@ -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.call.base.CallerBase
import com.mogo.eagle.core.function.call.msgbox.CallerMsgBoxManager
import com.mogo.eagle.core.function.call.trace.CallerTrace
import fault_management.FmInfo
/**
@@ -52,7 +53,8 @@ object CallerFaultManagementStateListenerManager : CallerBase<IMoGoFaultManageme
fmFilterInfoMsg.cacheFilterList = cacheFaultList
fmFilterInfoMsg.fmInfoList = list
cachePolicyMap[policyCode] = fmFilterInfoMsg
CallerMsgBoxManager.saveMsgBox(
CallerTrace.write("FaultMsg",fmInfo)
CallerMsgBoxManager.saveMsgBoxHasPB(
MsgBoxBean(
MsgBoxType.FMINFO,
FMInfoMsg(list, policyCode,policyTime,false)
@@ -65,7 +67,8 @@ object CallerFaultManagementStateListenerManager : CallerBase<IMoGoFaultManageme
cacheFaultList.add(it.faultId)
}
cachePolicyMap[policyCode] = FMFilterInfoMsg(list, policyCode, cacheFaultList)
CallerMsgBoxManager.saveMsgBox(
CallerTrace.write("FaultMsg",fmInfo)
CallerMsgBoxManager.saveMsgBoxHasPB(
MsgBoxBean(
MsgBoxType.FMINFO,
FMInfoMsg(list, policyCode,policyTime,false)

View File

@@ -29,6 +29,13 @@ object CallerMsgBoxManager {
providerApi?.saveMsg(bean)
}
/**
* 存储含有pb的数据到消息盒子(区别与上述方法中的trace write)
*/
fun saveMsgBoxHasPB(bean: MsgBoxBean){
providerApi?.saveMsg(bean)
}
/**
* 删除所有消息盒子中的数据
*/