person/Benutzerfunktion_model.php getBenutzerFunktionByUid method: added organisationseinheit_bezeichnung to Benutzerfunktionen, added sorting order (datumbis, datumvon)

This commit is contained in:
alex
2020-07-22 00:48:45 +02:00
parent 21703cfc00
commit 88e25524b3
@@ -24,7 +24,8 @@ class Benutzerfunktion_model extends DB_Model
{
$params = array($uid);
$qry = "SELECT tbl_benutzerfunktion.*, tbl_organisationseinheit.organisationseinheittyp_kurzbz
$qry = "SELECT tbl_benutzerfunktion.*, tbl_organisationseinheit.bezeichnung as organisationseinheit_bezeichnung,
tbl_organisationseinheit.organisationseinheittyp_kurzbz
FROM public.tbl_benutzerfunktion
LEFT JOIN public.tbl_organisationseinheit USING(oe_kurzbz)
WHERE uid=?";
@@ -44,7 +45,7 @@ class Benutzerfunktion_model extends DB_Model
$params[] = $endeZeitraum;
}
$qry .= ";";
$qry .= "ORDER BY datum_bis NULLS LAST, datum_von NULLS LAST;";
return $this->execQuery($qry, $params);
}