Séparation de la doc
This commit is contained in:
parent
36ed0557c0
commit
421cfcc7c7
@ -1,115 +1,4 @@
|
||||
|
||||
#############################################################################
|
||||
# Documentation
|
||||
# =============
|
||||
#
|
||||
# Présence d'éléments
|
||||
# IF(element=='',0,1) AS pElement
|
||||
#
|
||||
# Liste des champs dans la BDD
|
||||
# -----------------------------
|
||||
# id
|
||||
# source
|
||||
# source_id
|
||||
# triCode
|
||||
# autre_id
|
||||
# siren => LPAD(siren, 9, '000000000')
|
||||
# nic => LPAD(nic, 5, '00000')
|
||||
# actif => 0 ou 1
|
||||
# siege => 0 ou 1
|
||||
# raisonSociale
|
||||
# enseigne
|
||||
# sigle
|
||||
# identite_pre
|
||||
# marques => IF(marques=='',0,1) AS pMarques
|
||||
# adr_num
|
||||
# adr_btq
|
||||
# adr_typeVoie
|
||||
# adr_libVoie
|
||||
# adr_comp
|
||||
# adr_cp => Code postal
|
||||
# adr_ville => Ville
|
||||
# adr_dep => Departement (Corse 2A,2B => 201, 202)
|
||||
# adr_com
|
||||
# tel => IF(tel>0,1,0) AS pTel
|
||||
# fax => IF(fax>0,1,0) AS pFax
|
||||
# cj => Texte
|
||||
# capital => Float
|
||||
# capitalDev
|
||||
# capitalSrc
|
||||
# ape_etab => Texte => Code APE de l'etablissement
|
||||
# ape_entrep => Texte => Code APE de l'entreprise
|
||||
# age_entrep => Entier => Age de l'entreprise
|
||||
# age_etab => Entier => Age de l'etablissement
|
||||
# tca => Entier => Tranche de chiffre d'affaire
|
||||
# tcaexp => Entier => Tranche de chiffre d'affaire à l'export
|
||||
# teff_entrep => Tranche Effectif de l'entreprise
|
||||
# teff_etab => Tranche Effectif de l'etablissement
|
||||
# rang
|
||||
# web => IF(web=='',0,1) AS pWeb
|
||||
# mail => IF(mail=='',0,1) AS pMail
|
||||
# adrDom => 0,1,2
|
||||
# lieuAct
|
||||
# actifEco => 0,1
|
||||
# presentRcs => 0,1
|
||||
# procolHisto =>
|
||||
# tvaIntraCle
|
||||
# tvaIntraValide => 0,1
|
||||
# ape4_etab
|
||||
# ape4_entrep
|
||||
# NaceEtab
|
||||
# NaceEntrep
|
||||
# dateCrea_etab => Date
|
||||
# dateCrea_ent => Date
|
||||
# dateImmat => Date
|
||||
# eff_entrep => Entier => Effectif de l'entreprise
|
||||
# eff_etab => Entier => Effectir de l'etablissement
|
||||
# distSP
|
||||
# achPost
|
||||
# rivoli
|
||||
# dirCiv
|
||||
# dirNom => IF(pDirNom=='',0,1) AS pDirNom
|
||||
# dirPrenom
|
||||
# dirDateNaiss
|
||||
# dirFct
|
||||
# nbEtab => Nombre d'établissement
|
||||
# nbMPubli
|
||||
# sirenGrp => IF(pSirenGrp>0,1,0) AS pSirenGrp
|
||||
# nbActio => Entier => Nombre d'actionnaires (actio,bool)
|
||||
# nbPart => Entier => Nombre de participations (part, bool)
|
||||
# bilType =>
|
||||
# bilAnnee =>
|
||||
# bilCloture =>
|
||||
# bilDuree =>
|
||||
# bilTca =>
|
||||
# bilEE =>
|
||||
# bilFL =>
|
||||
# bilFK =>
|
||||
# bilFR =>
|
||||
# bilGF =>
|
||||
# bilGP =>
|
||||
# bilGU =>
|
||||
# bilGW =>
|
||||
# bilHD =>
|
||||
# bilHH =>
|
||||
# bilHL =>
|
||||
# bilHM =>
|
||||
# bilHN =>
|
||||
# bilYP =>
|
||||
# avisCs
|
||||
# codeCommune =>
|
||||
# l93_x
|
||||
# l93_y
|
||||
# alt
|
||||
# precis
|
||||
# zus =>
|
||||
# zru =>
|
||||
# zfu =>
|
||||
# cucs =>
|
||||
# zrr =>
|
||||
# zafr =>
|
||||
#############################################################################
|
||||
|
||||
source ciblage
|
||||
{
|
||||
type = mysql
|
||||
@ -119,9 +8,9 @@ source ciblage
|
||||
sql_db = jo
|
||||
sql_query_pre = SET NAMES utf8
|
||||
sql_query = \
|
||||
SELECT LPAD(siren, 9, '000000000') AS siren, LPAD(nic, 5, '00000') as nic \
|
||||
SELECT id, LPAD(siren, 9, '000000000') AS siren, LPAD(nic, 5, '00000') as nic, \
|
||||
actif, siege, \
|
||||
REPLACE(REPLACE(adr_dep, '2B', 200), '2A', 200) AS adr_dep, \
|
||||
REPLACE(REPLACE(adr_dep, '2B', '200'), '2A', '200') AS adr_dep, \
|
||||
IF(tel>0,1,0) AS tel, \
|
||||
IF(fax>0,1,0) AS fax, \
|
||||
cj, \
|
||||
@ -134,8 +23,8 @@ source ciblage
|
||||
tcaexp, \
|
||||
teff_entrep, \
|
||||
teff_etab, \
|
||||
IF(web=='',0,1) AS pWeb, \
|
||||
IF(mail=='',0,1) AS pMail, \
|
||||
IF(web='',0,1) AS web, \
|
||||
IF(mail='',0,1) AS mail, \
|
||||
actifEco, \
|
||||
presentRcs, \
|
||||
tvaIntraValide, \
|
||||
@ -144,11 +33,11 @@ source ciblage
|
||||
dateImmat, \
|
||||
eff_entrep, \
|
||||
eff_etab, \
|
||||
IF(dirNom=='',0,1) AS dirNom, \
|
||||
IF(dirNom='',0,1) AS dirNom, \
|
||||
nbEtab, \
|
||||
IF(sirenGrp>0,1,0) AS sirenGrp, \
|
||||
nbActio, \
|
||||
IF(nbActio>0,1,0) AS actio, \
|
||||
IF(nbActio>0,1,0) AS actio, \
|
||||
nbPart, \
|
||||
IF(nbPart>0,1,0) AS part, \
|
||||
bilType, \
|
||||
@ -170,7 +59,7 @@ source ciblage
|
||||
bilHM, \
|
||||
bilHN, \
|
||||
bilYP, \
|
||||
codeCommune AS adr_com, \
|
||||
codeCommune AS adr_com, \
|
||||
FROM etablissements_act WHERE siren>100;
|
||||
|
||||
sql_attr_string = siren
|
||||
|
110
config/Sphinx/Dev/ciblage.txt
Normal file
110
config/Sphinx/Dev/ciblage.txt
Normal file
@ -0,0 +1,110 @@
|
||||
#############################################################################
|
||||
# Documentation
|
||||
# =============
|
||||
#
|
||||
# Présence d'éléments
|
||||
# IF(element=='',0,1) AS pElement
|
||||
#
|
||||
# Liste des champs dans la BDD
|
||||
# -----------------------------
|
||||
# id
|
||||
# source
|
||||
# source_id
|
||||
# triCode
|
||||
# autre_id
|
||||
# siren => LPAD(siren, 9, '000000000')
|
||||
# nic => LPAD(nic, 5, '00000')
|
||||
# actif => 0 ou 1
|
||||
# siege => 0 ou 1
|
||||
# raisonSociale
|
||||
# enseigne
|
||||
# sigle
|
||||
# identite_pre
|
||||
# marques => IF(marques=='',0,1) AS pMarques
|
||||
# adr_num
|
||||
# adr_btq
|
||||
# adr_typeVoie
|
||||
# adr_libVoie
|
||||
# adr_comp
|
||||
# adr_cp => Code postal
|
||||
# adr_ville => Ville
|
||||
# adr_dep => Departement (Corse 2A,2B => 201, 202)
|
||||
# adr_com
|
||||
# tel => IF(tel>0,1,0) AS pTel
|
||||
# fax => IF(fax>0,1,0) AS pFax
|
||||
# cj => Texte
|
||||
# capital => Float
|
||||
# capitalDev
|
||||
# capitalSrc
|
||||
# ape_etab => Texte => Code APE de l'etablissement
|
||||
# ape_entrep => Texte => Code APE de l'entreprise
|
||||
# age_entrep => Entier => Age de l'entreprise
|
||||
# age_etab => Entier => Age de l'etablissement
|
||||
# tca => Entier => Tranche de chiffre d'affaire
|
||||
# tcaexp => Entier => Tranche de chiffre d'affaire à l'export
|
||||
# teff_entrep => Tranche Effectif de l'entreprise
|
||||
# teff_etab => Tranche Effectif de l'etablissement
|
||||
# rang
|
||||
# web => IF(web=='',0,1) AS pWeb
|
||||
# mail => IF(mail=='',0,1) AS pMail
|
||||
# adrDom => 0,1,2
|
||||
# lieuAct
|
||||
# actifEco => 0,1
|
||||
# presentRcs => 0,1
|
||||
# procolHisto =>
|
||||
# tvaIntraCle
|
||||
# tvaIntraValide => 0,1
|
||||
# ape4_etab
|
||||
# ape4_entrep
|
||||
# NaceEtab
|
||||
# NaceEntrep
|
||||
# dateCrea_etab => Date
|
||||
# dateCrea_ent => Date
|
||||
# dateImmat => Date
|
||||
# eff_entrep => Entier => Effectif de l'entreprise
|
||||
# eff_etab => Entier => Effectir de l'etablissement
|
||||
# distSP
|
||||
# achPost
|
||||
# rivoli
|
||||
# dirCiv
|
||||
# dirNom => IF(pDirNom=='',0,1) AS pDirNom
|
||||
# dirPrenom
|
||||
# dirDateNaiss
|
||||
# dirFct
|
||||
# nbEtab => Nombre d'établissement
|
||||
# nbMPubli
|
||||
# sirenGrp => IF(pSirenGrp>0,1,0) AS pSirenGrp
|
||||
# nbActio => Entier => Nombre d'actionnaires (actio,bool)
|
||||
# nbPart => Entier => Nombre de participations (part, bool)
|
||||
# bilType =>
|
||||
# bilAnnee =>
|
||||
# bilCloture =>
|
||||
# bilDuree =>
|
||||
# bilTca =>
|
||||
# bilEE =>
|
||||
# bilFL =>
|
||||
# bilFK =>
|
||||
# bilFR =>
|
||||
# bilGF =>
|
||||
# bilGP =>
|
||||
# bilGU =>
|
||||
# bilGW =>
|
||||
# bilHD =>
|
||||
# bilHH =>
|
||||
# bilHL =>
|
||||
# bilHM =>
|
||||
# bilHN =>
|
||||
# bilYP =>
|
||||
# avisCs
|
||||
# codeCommune =>
|
||||
# l93_x
|
||||
# l93_y
|
||||
# alt
|
||||
# precis
|
||||
# zus =>
|
||||
# zru =>
|
||||
# zfu =>
|
||||
# cucs =>
|
||||
# zrr =>
|
||||
# zafr =>
|
||||
#############################################################################
|
Loading…
Reference in New Issue
Block a user