fix: CDR数据导出添加网元名称列
This commit is contained in:
@@ -26,10 +26,10 @@ func (r CDREventIMS) SelectByPage(query model.CDREventIMSQuery) ([]model.CDREven
|
||||
tx = tx.Where("rm_uid = ?", query.RmUID)
|
||||
}
|
||||
if query.BeginTime != 0 {
|
||||
tx = tx.Where("timestamp >= ?", query.BeginTime)
|
||||
tx = tx.Where("created_at >= ?", query.BeginTime)
|
||||
}
|
||||
if query.EndTime != 0 {
|
||||
tx = tx.Where("timestamp <= ?", query.EndTime)
|
||||
tx = tx.Where("created_at <= ?", query.EndTime)
|
||||
}
|
||||
if query.CallerParty != "" {
|
||||
tx = tx.Where("JSON_EXTRACT(cdr_json, '$.callerParty') = ?", query.CallerParty)
|
||||
|
||||
Reference in New Issue
Block a user