This commit is contained in:
Michael RICOIS 2017-01-11 16:46:04 +01:00
parent 33dd6ce019
commit 868a29c1fb
5 changed files with 50 additions and 40 deletions

View File

@ -531,14 +531,16 @@ class Entreprise extends Scores_Ws_Server
$nbReponsesTotal = 1;
} else {
$iDb = new Metier_Util_Db();
$iDb->insert('siren_inexistants',
array( 'siren'=>$siren,
'nic'=>$nic,
'dep'=>$dep,
'login'=>$this->User->login,
'client'=>$this->User->idClient,
'dateInsert'=>date('YmdHis')));
try {
$this->conn->insert(jo.siren_inexistants, array(
'siren' => $siren,
'nic' => $nic,
'dep' => $dep,
'login' => $this->User->login,
'client' => $this->User->idClient,
'dateInsert' => date('YmdHis')));
} catch (\Doctrine\DBAL\DBALException $e) {
}
$nbReponses = 0;
$nbReponsesTotal = 0;
}

View File

@ -531,14 +531,16 @@ class Entreprise extends Scores_Ws_Server
$nbReponsesTotal = 1;
} else {
$iDb = new Metier_Util_Db();
$iDb->insert('siren_inexistants',
array( 'siren'=>$siren,
'nic'=>$nic,
'dep'=>$dep,
'login'=>$this->User->login,
'client'=>$this->User->idClient,
'dateInsert'=>date('YmdHis')));
try {
$this->conn->insert(jo.siren_inexistants, array(
'siren' => $siren,
'nic' => $nic,
'dep' => $dep,
'login' => $this->User->login,
'client' => $this->User->idClient,
'dateInsert' => date('YmdHis')));
} catch (\Doctrine\DBAL\DBALException $e) {
}
$nbReponses = 0;
$nbReponsesTotal = 0;
}

View File

@ -444,14 +444,16 @@ class Entreprise extends Scores_Ws_Server
$nbReponsesTotal = 1;
} else {
$iDb = new Metier_Util_Db();
$iDb->insert('siren_inexistants',
array( 'siren'=>$siren,
'nic'=>$nic,
'dep'=>$dep,
'login'=>$this->User->login,
'client'=>$this->User->idClient,
'dateInsert'=>date('YmdHis')));
try {
$this->conn->insert(jo.siren_inexistants, array(
'siren' => $siren,
'nic' => $nic,
'dep' => $dep,
'login' => $this->User->login,
'client' => $this->User->idClient,
'dateInsert' => date('YmdHis')));
} catch (\Doctrine\DBAL\DBALException $e) {
}
$nbReponses = 0;
$nbReponsesTotal = 0;
}

View File

@ -669,14 +669,16 @@ class Entreprise extends Scores_Ws_Server
$nbReponsesTotal = 1;
} else {
$iDb = new Metier_Util_Db();
$iDb->insert('jo.siren_inexistants', array(
'siren'=>$siren,
'nic'=>$nic,
'dep'=>$dep,
'login'=>$this->User->login,
'client'=>$this->User->idClient,
'dateInsert'=>date('YmdHis')));
try {
$this->conn->insert(jo.siren_inexistants, array(
'siren' => $siren,
'nic' => $nic,
'dep' => $dep,
'login' => $this->User->login,
'client' => $this->User->idClient,
'dateInsert' => date('YmdHis')));
} catch (\Doctrine\DBAL\DBALException $e) {
}
$nbReponses = 0;
$nbReponsesTotal = 0;
$rep['info'] = 'Siren inexistant';

View File

@ -2679,14 +2679,16 @@ class Entreprise extends Scores_Ws_Server
$nbReponsesTotal = 1;
} else {
$iDb = new Metier_Util_Db();
$iDb->insert('jo.siren_inexistants',
array( 'siren'=>$siren,
'nic'=>$nic,
'dep'=>$dep,
'login'=>$this->User->login,
'client'=>$this->User->idClient,
'dateInsert'=>date('YmdHis')));
try {
$this->conn->insert(jo.siren_inexistants, array(
'siren' => $siren,
'nic' => $nic,
'dep' => $dep,
'login' => $this->User->login,
'client' => $this->User->idClient,
'dateInsert' => date('YmdHis')));
} catch (\Doctrine\DBAL\DBALException $e) {
}
$nbReponses = 0;
$nbReponsesTotal = 0;
}