feat: psap cdr field

This commit is contained in:
zhangsz
2025-04-16 15:57:12 +08:00
parent 685adbf97d
commit 289117ce5f

View File

@@ -59,6 +59,8 @@ func (r CDREventMF) ExportXlsx(rows []model.CDREventMF, fileName, language strin
"G1": "Duration",
"H1": "Call Start Time",
"I1": "Hangup Time",
"J1": "Record Path",
"K1": "MSD",
}
// 读取字典数据 CDR SIP响应代码类别类型
dictCDRSipCode := sysService.NewSysDictData.SelectDictDataByType("cdr_sip_code")
@@ -136,7 +138,16 @@ func (r CDREventMF) ExportXlsx(rows []model.CDREventMF, fileName, language strin
releaseTimeStr = v.(string)
}
}
// Record Path
recordPath := ""
if v, ok := cdrJSON["recordPath"]; ok && v != nil {
recordPath = v.(string)
}
// MSD-最小数据集
msd := ""
if v, ok := cdrJSON["msd"]; ok && v != nil {
msd = v.(string)
}
dataCells = append(dataCells, map[string]any{
"A" + idx: row.ID,
"B" + idx: recordType,
@@ -147,6 +158,8 @@ func (r CDREventMF) ExportXlsx(rows []model.CDREventMF, fileName, language strin
"G" + idx: duration,
"H" + idx: seizureTimeStr,
"I" + idx: releaseTimeStr,
"J" + idx: recordPath,
"K" + idx: msd,
})
}