Annonces Legales, suppression condition limitante
This commit is contained in:
parent
d945f9d2b3
commit
3b5c391c70
@ -4741,7 +4741,7 @@ class MInsee
|
|||||||
$idAnnonce = abs($idAnnonce);
|
$idAnnonce = abs($idAnnonce);
|
||||||
$sqlHistoWhere = "e.ANBASE=$idAnnonce ";
|
$sqlHistoWhere = "e.ANBASE=$idAnnonce ";
|
||||||
$sqlHistoWhere.= " AND e.ANBASE=x.annonceNum AND e.DATE BETWEEN 19890101 AND 20041231";
|
$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";
|
$sqlHistoWhere.= " GROUP BY e.ANBASE ORDER BY e.DATE DESC";
|
||||||
$sql = $this->getAnnoncesLegalesHisto()." WHERE ".$sqlHistoWhere;
|
$sql = $this->getAnnoncesLegalesHisto()." WHERE ".$sqlHistoWhere;
|
||||||
}
|
}
|
||||||
@ -4768,7 +4768,7 @@ class MInsee
|
|||||||
$sqlHistoWhere = "e.E1GSIR=$siren";
|
$sqlHistoWhere = "e.E1GSIR=$siren";
|
||||||
$sqlHistoWhere.= $this->getAnnoncesLegalesRubrique('histo', $rubrique);
|
$sqlHistoWhere.= $this->getAnnoncesLegalesRubrique('histo', $rubrique);
|
||||||
$sqlHistoWhere.= " AND e.ANBASE=x.annonceNum AND e.DATE BETWEEN 19890101 AND 20041231";
|
$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";
|
$sqlHistoWhere.= " GROUP BY e.ANBASE ORDER BY e.DATE DESC";
|
||||||
$sqlHisto = $this->getAnnoncesLegalesHisto()." WHERE ".$sqlHistoWhere;
|
$sqlHisto = $this->getAnnoncesLegalesHisto()." WHERE ".$sqlHistoWhere;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user