fix: 修复IMS查询条件中的recordType参数处理,去掉多余的引号
This commit is contained in:
@@ -74,7 +74,7 @@ func (r CDREvent) SelectByPage(neType string, query map[string]string) ([]model.
|
||||
}
|
||||
case "IMS":
|
||||
if v, ok := query["recordType"]; ok && v != "" {
|
||||
tx = tx.Where("JSON_EXTRACT(cdr_json, '$.recordType') = ?", fmt.Sprintf("'%s'", v))
|
||||
tx = tx.Where("JSON_EXTRACT(cdr_json, '$.recordType') = ?", v)
|
||||
}
|
||||
if v, ok := query["callerParty"]; ok && v != "" {
|
||||
tx = tx.Where("JSON_EXTRACT(cdr_json, '$.callerParty') like ?", fmt.Sprintf("%%%s%%", v))
|
||||
|
||||
Reference in New Issue
Block a user