gestione gare pubbliche
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 
 
 
 

23 righe
885 B

<?
if (!empty($elabora_coda)) {
if (empty(getQueueLog("0","aggiornamentoAusa"))) {
Ente::updateSACodes();
alertManager::printCliInfo("Aggiornamento codici ausa");
$enti = $pdo->go("SELECT codice, cf FROM b_enti WHERE codice_ausa IS NULL OR codice_ausa = ''")->fetchAll(PDO::FETCH_ASSOC);
if (!empty($enti)) {
$updateAusa = $pdo->prepare("UPDATE b_enti SET codice_ausa = :ausa WHERE codice = :codice");
foreach($enti AS $ente) {
if (!empty($ente["cf"])) {
$ausa = Ente::getAusaInfo($ente["cf"]);
if (!empty($ausa["codice_ausa"])) {
$updateAusa->bindValue(":codice",$ente["codice"]);
$updateAusa->bindValue(":ausa",$ausa["codice_ausa"]);
$updateAusa->execute();
}
}
}
}
writeQueueLog("0","aggiornamentoAusa");
}
}
?>