PMCORE-3832

This commit is contained in:
Paula Quispe
2022-05-10 17:08:21 -04:00
committed by Paula.Quispe
parent c4684271c6
commit 908e975d5f
14 changed files with 170 additions and 74 deletions

View File

@@ -204,6 +204,25 @@ class Process extends Model
return $query->where('PROCESS.PRO_STATUS', $status);
}
/**
* Return process
* @param int|string $id
* @param string $key
*
* @return array
*/
public static function getIds($id, $key)
{
$process = Process::query()
->select()
->where($key, $id)
->get()
->values()
->toArray();
return $process;
}
/**
* Obtains the process list for an specific user and/or for the specific category
*