fix: 修复IMS导出中呼叫结果的处理逻辑

This commit is contained in:
TsMask
2025-04-29 17:10:36 +08:00
parent 23881042bc
commit f13a5badc6

View File

@@ -519,10 +519,9 @@ func (s BackupExportTableProcessor) exportIMS(hour int, columns []string, filePa
if col == "cause" {
if callType == "sms" {
arr[i] = "Success"
continue
} else {
callResult := "Other"
if v, ok := cdrJSON["cause"]; ok && v != nil {
callResult := "Other"
cause := fmt.Sprint(v)
for _, v := range dictCDRSipCode {
if cause == v.DataValue {
@@ -530,8 +529,8 @@ func (s BackupExportTableProcessor) exportIMS(hour int, columns []string, filePa
break
}
}
arr[i] = callResult
}
arr[i] = callResult
}
}
// 呼叫时间