Correction SQL : Activité réglementée
This commit is contained in:
parent
cd9cc5cb94
commit
219b083e72
@ -6440,9 +6440,10 @@ class Metier_Insee_MInsee extends Metier_Insee_Table
|
||||
}
|
||||
|
||||
$stmt = $this->conn->executeQuery("SELECT infoTel, count(*) AS nb FROM jo.telephonie
|
||||
WHERE siren=$siren $strNic AND typeTel='an8' ORDER BY nb DESC LIMIT 0,1");
|
||||
WHERE siren=$siren AND typeTel='an8' ORDER BY nb DESC LIMIT 0,1");
|
||||
if ($stmt->rowCount()) {
|
||||
$result = $stmt->fetch(\PDO::FETCH_OBJ);
|
||||
if ($result->nb > 0) {
|
||||
$an8en = $result->infoTel;
|
||||
$stmt = $this->conn->executeQuery("SELECT infoTel FROM jo.telephonie
|
||||
WHERE siren=$siren $strNic AND typeTel='an8' ORDER BY dateProvPartenaire DESC LIMIT 0,1");
|
||||
@ -6450,6 +6451,7 @@ class Metier_Insee_MInsee extends Metier_Insee_Table
|
||||
$result = $stmt->fetch(\PDO::FETCH_OBJ);
|
||||
$an8et = $result->infoTel;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Recherche des activités réglementées possibles Naf4&5 ou An8
|
||||
|
Loading…
Reference in New Issue
Block a user