feat: SMF-CDR添加DNN搜索条件

This commit is contained in:
TsMask
2025-01-17 15:25:20 +08:00
parent 2fa5920100
commit 1cc53a734f
2 changed files with 4 additions and 0 deletions

View File

@@ -42,6 +42,9 @@ func (r CDREventSMF) SelectByPage(querys model.CDREventSMFQuery) ([]model.CDREve
if querys.SubscriberID != "" {
tx = tx.Where("JSON_EXTRACT(cdr_json, '$.subscriberIdentifier.subscriptionIDData') = ?", querys.SubscriberID)
}
if querys.DNN != "" {
tx = tx.Where("JSON_EXTRACT(cdr_json, '$.pDUSessionChargingInformation.dNNID') = ?", querys.DNN)
}
// 查询结果
var total int64 = 0