Fix Historique du score

This commit is contained in:
Michael RICOIS 2017-02-09 15:31:39 +01:00
parent 20a402b3bb
commit 553daa922a

View File

@ -2592,7 +2592,7 @@ class Interne extends Scores_Ws_Server
WHERE siren=:siren AND indiScoreDate >= (CURDATE() - INTERVAL 5 YEAR) GROUP BY indiScoreDate)
UNION (SELECT h.$type, h.encours, h.indiScoreDate, h.sourceModif FROM historiques.scores_surveillance h
WHERE siren=:siren AND indiScoreDate >= (CURDATE() - INTERVAL 5 YEAR) GROUP BY indiScoreDate)
ORDER BY indiScoreDate DESC GROUP BY indiScoreDate ";
ORDER BY indiScoreDate DESC";
$stmt = $this->conn->prepare($sql);
$stmt->bindValue('siren', $siren);
$stmt->execute();