Merge branch 'fix_bug_qxz' into 'master'

* Fix where condition sql with key words.

See merge request easycorp/zentaopms!7432
This commit is contained in:
刘刚
2023-04-17 05:22:38 +00:00
+1 -1
View File
@@ -538,7 +538,7 @@ class chartModel extends model
$wheres = array();
foreach($filters as $field => $filter)
{
$wheres[] = "$field {$filter['operator']} {$filter['value']}";
$wheres[] = "`$field` {$filter['operator']} {$filter['value']}";
}
$whereStr = implode(' and ', $wheres);