feat: psap cdr field
This commit is contained in:
@@ -59,6 +59,8 @@ func (r CDREventMF) ExportXlsx(rows []model.CDREventMF, fileName, language strin
|
|||||||
"G1": "Duration",
|
"G1": "Duration",
|
||||||
"H1": "Call Start Time",
|
"H1": "Call Start Time",
|
||||||
"I1": "Hangup Time",
|
"I1": "Hangup Time",
|
||||||
|
"J1": "Record Path",
|
||||||
|
"K1": "MSD",
|
||||||
}
|
}
|
||||||
// 读取字典数据 CDR SIP响应代码类别类型
|
// 读取字典数据 CDR SIP响应代码类别类型
|
||||||
dictCDRSipCode := sysService.NewSysDictData.SelectDictDataByType("cdr_sip_code")
|
dictCDRSipCode := sysService.NewSysDictData.SelectDictDataByType("cdr_sip_code")
|
||||||
@@ -136,7 +138,16 @@ func (r CDREventMF) ExportXlsx(rows []model.CDREventMF, fileName, language strin
|
|||||||
releaseTimeStr = v.(string)
|
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{
|
dataCells = append(dataCells, map[string]any{
|
||||||
"A" + idx: row.ID,
|
"A" + idx: row.ID,
|
||||||
"B" + idx: recordType,
|
"B" + idx: recordType,
|
||||||
@@ -147,6 +158,8 @@ func (r CDREventMF) ExportXlsx(rows []model.CDREventMF, fileName, language strin
|
|||||||
"G" + idx: duration,
|
"G" + idx: duration,
|
||||||
"H" + idx: seizureTimeStr,
|
"H" + idx: seizureTimeStr,
|
||||||
"I" + idx: releaseTimeStr,
|
"I" + idx: releaseTimeStr,
|
||||||
|
"J" + idx: recordPath,
|
||||||
|
"K" + idx: msd,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user