mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-23 18:02:18 +00:00
Erweiterung Infomail um projektleitende Mitarbeiter
This commit is contained in:
@@ -11,4 +11,16 @@ class Projekt_ressource_model extends DB_Model
|
||||
$this->dbTable = 'fue.tbl_projekt_ressource';
|
||||
$this->pk = 'projekt_ressource_id';
|
||||
}
|
||||
|
||||
public function getProjektleiterActiveProjects()
|
||||
{
|
||||
$qry = "SELECT DISTINCT r.mitarbeiter_uid, p.projekt_kurzbz, p.titel
|
||||
FROM fue.tbl_projekt p
|
||||
JOIN fue.tbl_projekt_ressource pr using (projekt_kurzbz)
|
||||
JOIN fue.tbl_ressource r on (pr.ressource_id = r.ressource_id)
|
||||
wHERE((p.beginn<=now() or p.beginn is null)
|
||||
AND (p.ende >=now() OR p.ende is null))
|
||||
AND pr.funktion_kurzbz = 'Leitung'";
|
||||
return $this->execQuery($qry);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user