Erweiterung Infomail um projektleitende Mitarbeiter

This commit is contained in:
ma0068
2022-11-16 14:56:56 +01:00
parent 2528a6feb6
commit 3acdc3385b
2 changed files with 65 additions and 6 deletions
@@ -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);
}
}