Jointure
This commit is contained in:
parent
b361e60fb0
commit
9eea8297f2
@ -5731,7 +5731,7 @@ class Metier_Insee_MInsee extends Metier_Insee_Table
|
||||
l.cpvComp, l.volume, l.execution, l.livraison, l.dureeJours, l.dureeMois, l.dateDeb,
|
||||
l.dateFin, l.dateInsert, d.titre, d.objet, d.titreMarche, d.typeObjetMarche, d.objetAutre, d.autres
|
||||
FROM jo.boamp_lots l, jo.boamp b, jo.boamp_detail d
|
||||
WHERE l.siren=$siren AND l.idAnn=b.id $strIdAnn
|
||||
WHERE l.siren=$siren AND l.idAnn=b.id $strIdAnn AND d.id=b.id
|
||||
GROUP BY b.id ORDER BY l.Boamp_Date_Parution DESC LIMIT $offset,$lignes");
|
||||
} catch(\Doctrine\DBAL\DBALException $e) {
|
||||
file_put_contents('test.log', $e->getMessage());
|
||||
@ -5952,7 +5952,7 @@ class Metier_Insee_MInsee extends Metier_Insee_Table
|
||||
// --- Recherche dans les avis d'attribution
|
||||
if ($type=='' || $type=='A') {
|
||||
$stmt = $this->conn->executeQuery("SELECT COUNT(b.id) AS nb FROM jo.boamp_lots l, jo.boamp b, jo.boamp_detail d
|
||||
WHERE l.siren=$siren AND l.idAnn=b.id");
|
||||
WHERE l.siren=$siren AND l.idAnn=b.id AND d.id=b.id");
|
||||
if ($stmt->rowCount()) {
|
||||
$result = $stmt->fetch(\PDO::FETCH_OBJ);
|
||||
$bodaccA = $result->nb;
|
||||
|
Loading…
Reference in New Issue
Block a user