PMCORE-552
This commit is contained in:
committed by
Julio Cesar Laura Avendaño
parent
a1f447d8af
commit
ebfc73ca11
@@ -46,8 +46,9 @@ class ListUnassigned extends Model
|
||||
/**
|
||||
* Scope a query to only include specific tasks
|
||||
*
|
||||
* @param \Illuminate\Database\Eloquent\Builder $query
|
||||
* @param array $tasks
|
||||
* @param \Illuminate\Database\Eloquent\Builder $query
|
||||
* @param array $tasks
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Builder
|
||||
*/
|
||||
public function scopeTasksIn($query, array $tasks)
|
||||
@@ -58,8 +59,8 @@ class ListUnassigned extends Model
|
||||
/**
|
||||
* Scope a query to only include a specific case
|
||||
*
|
||||
* @param \Illuminate\Database\Eloquent\Builder $query
|
||||
* @param integer $appNumber
|
||||
* @param \Illuminate\Database\Eloquent\Builder $query
|
||||
* @param integer $appNumber
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Builder
|
||||
*/
|
||||
@@ -71,8 +72,8 @@ class ListUnassigned extends Model
|
||||
/**
|
||||
* Scope a query to only include a specific index
|
||||
*
|
||||
* @param \Illuminate\Database\Eloquent\Builder $query
|
||||
* @param integer $index
|
||||
* @param \Illuminate\Database\Eloquent\Builder $query
|
||||
* @param integer $index
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Builder
|
||||
*/
|
||||
@@ -84,8 +85,8 @@ class ListUnassigned extends Model
|
||||
/**
|
||||
* Scope a query to only include a specific task
|
||||
*
|
||||
* @param \Illuminate\Database\Eloquent\Builder $query
|
||||
* @param integer $task
|
||||
* @param \Illuminate\Database\Eloquent\Builder $query
|
||||
* @param integer $task
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Builder
|
||||
*/
|
||||
@@ -100,7 +101,7 @@ class ListUnassigned extends Model
|
||||
* @param string $userUid
|
||||
* @param array $filters
|
||||
*
|
||||
* @return array
|
||||
* @return int
|
||||
*/
|
||||
public static function doCount($userUid, $filters = [])
|
||||
{
|
||||
@@ -125,4 +126,21 @@ class ListUnassigned extends Model
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the unassigned cases related to the self service timeout
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function selfServiceTimeout()
|
||||
{
|
||||
$query = ListUnassigned::query()->select();
|
||||
$query->join('TASK', function ($join) {
|
||||
$join->on('LIST_UNASSIGNED.TAS_ID', '=', 'TASK.TAS_ID')
|
||||
->where('TASK.TAS_SELFSERVICE_TIMEOUT', '=', 1);
|
||||
});
|
||||
$results = $query->get()->toArray();
|
||||
|
||||
return $results;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user