mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-23 16:18:44 +05:00
Local tests for SetCdr, SetRatedCdr and GetStoredCdrs
This commit is contained in:
@@ -632,19 +632,19 @@ func (self *SQLStorage) GetStoredCdrs(runId, cdrHost, cdrSource, reqType, direct
|
||||
if len(fltr) != 0 {
|
||||
fltr += " AND "
|
||||
}
|
||||
fltr += fmt.Sprintf(" destination LIKE '%s%'", destPrefix)
|
||||
fltr += fmt.Sprintf(" destination LIKE '%s%%'", destPrefix)
|
||||
}
|
||||
if !timeStart.IsZero() {
|
||||
if len(fltr) != 0 {
|
||||
fltr += " AND "
|
||||
}
|
||||
fltr += fmt.Sprintf(" answer_time>='%d'", timeStart)
|
||||
fltr += fmt.Sprintf(" answer_time>='%s'", timeStart)
|
||||
}
|
||||
if !timeEnd.IsZero() {
|
||||
if len(fltr) != 0 {
|
||||
fltr += " AND "
|
||||
}
|
||||
fltr += fmt.Sprintf(" answer_time<'%d'", timeEnd)
|
||||
fltr += fmt.Sprintf(" answer_time<'%s'", timeEnd)
|
||||
}
|
||||
if ignoreRated {
|
||||
if len(fltr) != 0 {
|
||||
|
||||
Reference in New Issue
Block a user