Suppression du recalcul des SIRENs par une annonce BODACC de dépots de comptes
This commit is contained in:
parent
a6159aa38d
commit
dd84577345
@ -154,7 +154,7 @@ $tabQueries = array(
|
||||
/* Entreprises RNCS */
|
||||
// 'rncs' => "SELECT $strSelect, 'rncs' as source FROM scores_surveillance_tmp s, rncs_entrep r WHERE s.siren>1000 AND s.siren=r.siren AND (r.dateInsert>s.dateUpdate OR r.dateUpdate>s.dateUpdate) /*AND (d.dateInsert>'2013-03-15 00:00:00' OR d.dateUpdate>'2013-03-15 00:00:00')*/ AND s.procol NOT IN('P') GROUP BY siren",
|
||||
/* Bodacc */
|
||||
'bodacc' => "SELECT $strSelect, 'bodacc' as source FROM scores_surveillance_tmp s, bodacc_detail b WHERE b.siren>1000 AND s.siren=b.siren AND( b.dateInsert>s.dateUpdate OR b.dateUpdate>s.dateUpdate) AND s.procol NOT IN('P') AND b.Rubrique NOT IN('creations') GROUP BY siren",
|
||||
'bodacc' => "SELECT $strSelect, 'bodacc' as source FROM scores_surveillance_tmp s, bodacc_detail b WHERE b.siren>1000 AND s.siren=b.siren AND( b.dateInsert>s.dateUpdate OR b.dateUpdate>s.dateUpdate) AND s.procol NOT IN('P') AND b.Rubrique NOT IN('creations','comptes') GROUP BY siren",
|
||||
/* Collecte */
|
||||
'collecte' => "SELECT $strSelect, 'collecte' as source FROM scores_surveillance_tmp s, annonces b WHERE b.siren>1000 AND s.siren=b.siren AND b.dateInsert>s.dateUpdate AND s.procol NOT IN('P') /*AND b.typeEven NOT IN(3200)*/ GROUP BY siren",
|
||||
/* Bilans en base */
|
||||
|
Loading…
x
Reference in New Issue
Block a user