fix: 兼容3G的SGWC字段
This commit is contained in:
@@ -58,8 +58,8 @@ func (r CDREventSGWC) ExportXlsx(rows []model.CDREventSGWC, fileName string) (st
|
|||||||
"H1": "GPRS Downlink",
|
"H1": "GPRS Downlink",
|
||||||
"I1": "Duration",
|
"I1": "Duration",
|
||||||
"J1": "Invocation Time",
|
"J1": "Invocation Time",
|
||||||
"K1": "GGSN Address",
|
"K1": "PGW Address",
|
||||||
"L1": "SGSN Address",
|
"L1": "SGW Address",
|
||||||
"M1": "RAT Type",
|
"M1": "RAT Type",
|
||||||
"N1": "PDPPDN Type",
|
"N1": "PDPPDN Type",
|
||||||
"O1": "PDPPDN Address",
|
"O1": "PDPPDN Address",
|
||||||
@@ -102,17 +102,21 @@ func (r CDREventSGWC) ExportXlsx(rows []model.CDREventSGWC, fileName string) (st
|
|||||||
pGWAddressUsed := ""
|
pGWAddressUsed := ""
|
||||||
if v, ok := cdrJSON["pGWAddressUsed"]; ok && v != nil {
|
if v, ok := cdrJSON["pGWAddressUsed"]; ok && v != nil {
|
||||||
pGWAddressUsed = fmt.Sprint(v)
|
pGWAddressUsed = fmt.Sprint(v)
|
||||||
|
headerCells["K1"] = "PGW Address"
|
||||||
}
|
}
|
||||||
if v, ok := cdrJSON["GGSNAddress"]; ok && v != nil {
|
if v, ok := cdrJSON["GGSNAddress"]; ok && v != nil {
|
||||||
pGWAddressUsed = fmt.Sprint(v)
|
pGWAddressUsed = fmt.Sprint(v)
|
||||||
|
headerCells["K1"] = "GGSN Address"
|
||||||
}
|
}
|
||||||
// sGWAddress
|
// sGWAddress
|
||||||
sGWAddress := ""
|
sGWAddress := ""
|
||||||
if v, ok := cdrJSON["sGWAddress"]; ok && v != nil {
|
if v, ok := cdrJSON["sGWAddress"]; ok && v != nil {
|
||||||
sGWAddress = fmt.Sprint(v)
|
sGWAddress = fmt.Sprint(v)
|
||||||
|
headerCells["L1"] = "SGW Address"
|
||||||
}
|
}
|
||||||
if v, ok := cdrJSON["SGSNAddress"]; ok && v != nil {
|
if v, ok := cdrJSON["SGSNAddress"]; ok && v != nil {
|
||||||
sGWAddress = fmt.Sprint(v)
|
sGWAddress = fmt.Sprint(v)
|
||||||
|
headerCells["L1"] = "SGSN Address"
|
||||||
}
|
}
|
||||||
// recordType
|
// recordType
|
||||||
recordType := ""
|
recordType := ""
|
||||||
|
|||||||
Reference in New Issue
Block a user