Nettoyage et Logger
This commit is contained in:
parent
c7bb17a356
commit
aae9aee43d
@ -100,8 +100,11 @@ class Entreprise extends Scores_Ws_Server
|
||||
$inseeLResult->insL6_POST
|
||||
);
|
||||
}
|
||||
} catch (\Doctrine\DBAL\DBALException $e) {
|
||||
if ($this->logger !== null) {
|
||||
$this->logger->error($e->getMessage());
|
||||
}
|
||||
}
|
||||
catch (\Doctrine\DBAL\DBALException $e) {}
|
||||
|
||||
if (is_array($rnvpResult) && array_key_exists('HexaViaMat', $rnvpResult)) {
|
||||
$Infos->AdresseComplement = $rnvpResult['L3'];
|
||||
@ -120,8 +123,7 @@ class Entreprise extends Scores_Ws_Server
|
||||
}
|
||||
$Infos->PaiementInfo = $PaiementInfo;
|
||||
|
||||
if ($evaluation['NbBilansScore'] > 0)
|
||||
{
|
||||
if ($evaluation['NbBilansScore'] > 0) {
|
||||
$bilan = $evaluation['tabBilan'][0];
|
||||
$Infos->BilanCA = $bilan['FL'];
|
||||
$Infos->BilanDateCloture = $bilan['DATE_CLOTURE'];
|
||||
@ -134,9 +136,6 @@ class Entreprise extends Scores_Ws_Server
|
||||
$Infos->Encours = round($evaluation['encours']/1000) * 1000;
|
||||
|
||||
// --- Ajouter en surveillance
|
||||
|
||||
|
||||
$survM = new Application_Model_JoSurveillancesSite();
|
||||
try {
|
||||
$sql = "SELECT * FROM jo.surveillances_sites WHERE login=:login AND siren=:siren";
|
||||
$stmt = $this->conn->prepare($sql);
|
||||
@ -160,8 +159,11 @@ class Entreprise extends Scores_Ws_Server
|
||||
);
|
||||
$this->conn->insert('jo.surveillances_sites', $data);
|
||||
}
|
||||
} catch (\Doctrine\DBAL\DBALException $e) {
|
||||
if ($this->logger !== null) {
|
||||
$this->logger->error($e->getMessage());
|
||||
}
|
||||
}
|
||||
catch (\Doctrine\DBAL\DBALException $e) {}
|
||||
// --- Fin ajout surveillance
|
||||
|
||||
$this->wsLog('identite', $siren);
|
||||
|
Loading…
Reference in New Issue
Block a user