MInsee : Select database
This commit is contained in:
parent
98541b3ef9
commit
6f0179e944
@ -1464,7 +1464,7 @@ class MInsee
|
||||
$tabSupId = array();
|
||||
|
||||
//Recherche d'évènement pour lesquels le SIREN est ASSOCIE
|
||||
$result = $this->iDb->select('insee_even', 'id', "insSIREN!=$siren AND insSIRETASS BETWEEN $siretDeb AND $siretFin GROUP BY insSIREN, ROUND(insSIRETASS/100000) ORDER BY insDATEMAJ DESC",false, MYSQL_ASSOC);
|
||||
$result = $this->iDb->select('insee.insee_even', 'id', "insSIREN!=$siren AND insSIRETASS BETWEEN $siretDeb AND $siretFin GROUP BY insSIREN, ROUND(insSIRETASS/100000) ORDER BY insDATEMAJ DESC",false, MYSQL_ASSOC);
|
||||
if ( count($result)>0 ) {
|
||||
foreach ($result as $tmp) {
|
||||
$tabSupId[] = $tmp['id'];
|
||||
@ -1472,7 +1472,7 @@ class MInsee
|
||||
}
|
||||
|
||||
//Recherche d'évènement pour lesquels le SIREN est Prédécesseur ou Successeur
|
||||
$result = $this->iDb->select('insee_even', 'id', "insSIREN!=$siren AND insSIRETASS BETWEEN $siretDeb AND $siretFin GROUP BY insSIREN, ROUND(insSIRETPS/100000) ORDER BY insDATEMAJ DESC",false, MYSQL_ASSOC);
|
||||
$result = $this->iDb->select('insee.insee_even', 'id', "insSIREN!=$siren AND insSIRETASS BETWEEN $siretDeb AND $siretFin GROUP BY insSIREN, ROUND(insSIRETPS/100000) ORDER BY insDATEMAJ DESC",false, MYSQL_ASSOC);
|
||||
if ( count($result)>0 ) {
|
||||
foreach ($result as $tmp) {
|
||||
$tabSupId[] = $tmp['id'];
|
||||
@ -2933,7 +2933,7 @@ class MInsee
|
||||
}
|
||||
|
||||
if ($tabInsee['CIVILITE']>0 && ($tabRet['dir1Nom']=='' || $tabRet['dir1Prenom'])) {
|
||||
$tmp=$this->iDbInsee->select('insee_even', 'dirNom, dirNomUsage, dirPrenom, insCIVILITE', "insSIREN=$siren ORDER BY insDATEVE DESC LIMIT 0,1", false, MYSQL_ASSOC);
|
||||
$tmp=$this->iDb->select('insee.insee_even', 'dirNom, dirNomUsage, dirPrenom, insCIVILITE', "insSIREN=$siren ORDER BY insDATEVE DESC LIMIT 0,1", false, MYSQL_ASSOC);
|
||||
$tabRet['dir1Nom']=@strtoupper($tmp[0]['dirNom']);
|
||||
$tabRet['dir1Prenom']=@ucwords(strtolower(@$tmp[0]['dirPrenom']));
|
||||
$tabRet['dir1NomUsage']=@strtoupper($tmp[0]['dirNomUsage']);
|
||||
|
Loading…
x
Reference in New Issue
Block a user