fix reports by methods
This commit is contained in:
parent
1e7d9cf6ef
commit
ee3dcc05a0
@ -56,7 +56,13 @@ switch ($action) {
|
||||
if (count($mts) > 0) {
|
||||
if (count($mts) != count($methods)) {
|
||||
foreach ($mts as $mt) {
|
||||
$query->where_like('method', "$mt - %");
|
||||
$w = [];
|
||||
$v = [];
|
||||
foreach ($mts as $mt) {
|
||||
$w[] ='method';
|
||||
$v[] = "$mt - %";
|
||||
}
|
||||
$query->where_likes($w, $v);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -85,7 +91,13 @@ switch ($action) {
|
||||
if (count($mts) > 0) {
|
||||
if (count($mts) != count($methods)) {
|
||||
foreach ($mts as $mt) {
|
||||
$query->where_like('method', "$mt - %");
|
||||
$w = [];
|
||||
$v = [];
|
||||
foreach ($mts as $mt) {
|
||||
$w[] ='method';
|
||||
$v[] = "$mt - %";
|
||||
}
|
||||
$query->where_likes($w, $v);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -116,9 +128,13 @@ switch ($action) {
|
||||
}
|
||||
if (count($mts) > 0) {
|
||||
if (count($mts) != count($methods)) {
|
||||
$w = [];
|
||||
$v = [];
|
||||
foreach ($mts as $mt) {
|
||||
$query->where_like('method', "$mt - %");
|
||||
$w[] ='method';
|
||||
$v[] = "$mt - %";
|
||||
}
|
||||
$query->where_likes($w, $v);
|
||||
}
|
||||
}
|
||||
$count = $query->count();
|
||||
@ -158,7 +174,13 @@ switch ($action) {
|
||||
if (count($mts) > 0) {
|
||||
if (count($mts) != count($methods)) {
|
||||
foreach ($mts as $mt) {
|
||||
$query->where_like('method', "$mt - %");
|
||||
$w = [];
|
||||
$v = [];
|
||||
foreach ($mts as $mt) {
|
||||
$w[] ='method';
|
||||
$v[] = "$mt - %";
|
||||
}
|
||||
$query->where_likes($w, $v);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -348,11 +370,13 @@ switch ($action) {
|
||||
$query->where_in('type', $tps);
|
||||
}
|
||||
if (count($mts) > 0) {
|
||||
if (count($mts) != count($methods)) {
|
||||
$w = [];
|
||||
$v = [];
|
||||
foreach ($mts as $mt) {
|
||||
$query->where_like('method', "$mt - %");
|
||||
}
|
||||
$w[] ='method';
|
||||
$v[] = "$mt - %";
|
||||
}
|
||||
$query->where_likes($w, $v);
|
||||
}
|
||||
if (count($rts) > 0) {
|
||||
$query->where_in('routers', $rts);
|
||||
|
@ -1114,5 +1114,7 @@
|
||||
"3_Days": "3 Days",
|
||||
"7_Days": "7 Days",
|
||||
"Reminder_Notification_Intervals": "Reminder Notification Intervals",
|
||||
"Reminder_Notify_Intervals": "Reminder Notify Intervals"
|
||||
"Reminder_Notify_Intervals": "Reminder Notify Intervals",
|
||||
"read_documentation": "read documentation",
|
||||
"Day": "Day"
|
||||
}
|
@ -1483,6 +1483,14 @@ class ORM implements ArrayAccess
|
||||
return $this->_add_simple_where($column_name, 'LIKE', $value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Add any WHERE ... LIKE clause to your query.
|
||||
*/
|
||||
public function where_likes($column = null, $values = null)
|
||||
{
|
||||
return $this->_addWhere('(' . implode(' LIKE ? OR ', $column) . ' LIKE ? )', $values);
|
||||
}
|
||||
|
||||
/**
|
||||
* Add where WHERE ... NOT LIKE clause to your query.
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user