Annonces Legales, suppression condition limitante

This commit is contained in:
Michael RICOIS 2015-06-19 15:04:46 +00:00
parent d945f9d2b3
commit 3b5c391c70

View File

@ -4741,7 +4741,7 @@ class MInsee
$idAnnonce = abs($idAnnonce);
$sqlHistoWhere = "e.ANBASE=$idAnnonce ";
$sqlHistoWhere.= " AND e.ANBASE=x.annonceNum AND e.DATE BETWEEN 19890101 AND 20041231";
$sqlHistoWhere.= " AND e.E1GSIR=e.SIREN";
/*$sqlHistoWhere.= " AND e.E1GSIR=e.SIREN";*/
$sqlHistoWhere.= " GROUP BY e.ANBASE ORDER BY e.DATE DESC";
$sql = $this->getAnnoncesLegalesHisto()." WHERE ".$sqlHistoWhere;
}
@ -4768,7 +4768,7 @@ class MInsee
$sqlHistoWhere = "e.E1GSIR=$siren";
$sqlHistoWhere.= $this->getAnnoncesLegalesRubrique('histo', $rubrique);
$sqlHistoWhere.= " AND e.ANBASE=x.annonceNum AND e.DATE BETWEEN 19890101 AND 20041231";
$sqlHistoWhere.= " AND e.E1GSIR=e.SIREN";
/*$sqlHistoWhere.= " AND e.E1GSIR=e.SIREN";*/
$sqlHistoWhere.= " GROUP BY e.ANBASE ORDER BY e.DATE DESC";
$sqlHisto = $this->getAnnoncesLegalesHisto()." WHERE ".$sqlHistoWhere;