Commit 2232e933 authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files

Merge remote-tracking branch 'origin/alc-scindage-donnees-pj' into ll-workflow

# Conflicts:
#	code/test7.php
#	config/autoload/unicaen-tbl.global.php
#	data/ddl/view/V_TBL_DOSSIER.sql
#	data/ddl/view/V_TBL_PIECE_JOINTE_DEMANDE.sql
#	data/ddl_columns_pos.php
#	module/Application/src/Service/FichierService.php
#	module/Dossier/src/Controller/IntervenantDossierController.php
#	module/Dossier/src/Entity/Db/IntervenantDossier.php
#	module/Dossier/src/Hydrator/IntervenantDossierHydrator.php
#	module/Dossier/view/dossier/intervenant-dossier/index.phtml
#	module/PieceJointe/src/Controller/PieceJointeController.php
#	module/PieceJointe/src/Entity/Db/TypePieceJointeStatut.php
#	module/PieceJointe/src/Service/PieceJointeService.php
#	module/PieceJointe/src/Service/Traits/TblPieceJointeServiceAwareTrait.php
#	module/PieceJointe/view/piece-jointe/piece-jointe/index.phtml
#	module/Workflow/src/Entity/Db/WfEtape.php
#	module/Workflow/src/Service/WorkflowService.php
#	public/dist/.vite/manifest.json
#	public/dist/assets/vendor-sjE-mo5-.js
parents bdb8f28c 2cd6920c
Loading
Loading
Loading
Loading
Loading
+19 −50
Changes for code/QueryCompare.php: 19 added lines, 50 removed lines.
Original line number Diff line number Diff line
@@ -5,63 +5,32 @@
 * @var $container  \Psr\Container\ContainerInterface
 */

$sql1 = "SELECT * FROM temp_contrat_main";
$sql1 = "SELECT tbj.* FROM tbl_piece_jointe tbj 
         --where intervenant_id = 825820
        --JOIN intervenant i ON i.id = tbj.intervenant_id
        --JOIN piece_jointe pj ON pj.id = tbj.piece_jointe_id";

$sql2 = "SELECT * FROM v_contrat_main";
$sql2 = "SELECT  tbjo.* FROM tbl_piece_jointe_old2 tbjo
        --where intervenant_id = 825820
       -- JOIN intervenant i ON i.id = tbjo.intervenant_id
        --JOIN piece_jointe pj ON pj.id = tbjo.piece_jointe_id";

$keyCols = ['CONTRAT_ID'];

$keyCols = ['TYPE_PIECE_JOINTE_ID', 'INTERVENANT_ID', 'ANNEE_ID'];

//pays_nationalite => paysNationalite
//date_creation => dateCreation
//date_contrat_lie => dateContratLie

$ignoreCols = [
    'FORMULE_RESULTAT_ID', // colonne supprimée
    //'totalDiviseParDix',   // colonne supprimée
    'tauxId',              // colonne supprimée
    'tauxMajoreId',        // colonne supprimée

    'heuresPeriodeEssai',   // nouvelle colonne
    'heuresPrimePrecarite', // nouvelle colonne
    'missions', // nouvelle colonne
    'typesMission', // nouvelle colonne
    'missionsTypesMissions', // nouvelle colonne

    'horodatage',          // dates générées à partir de NOW => pas de pb

    'dateCreation',         // formatage pourri ancienne => Ok maintenant
    'dateContratLie',      // formatage pourri ancienne => Ok maintenant
    //'tauxHoraireDate',       // formatage pourri ancienne => Ok maintenant
    //'tauxMajoreHoraireDate', // colonne vide avant

    'heuresFormation', // toutes vides ancienne vue

    'enteteAutresHeures',  // problèmes trouvés dans ancienne vue v_contrat_main
    'legendeAutresHeures', // problèmes trouvés dans ancienne vue v_contrat_main

    'paysNationalite', // colonnes vides dans ancienne, car on ne prenait en compte que les données perso sans tenir compte de la table intervenant

    'serviceTotalPaye', // le nouvel calcul met le taux de CP à 0 pour les enseignements, pas l'ancienne vue

    //'tauxMajoreNom', // bug sur ancien tbl, pas utilisé car recalculé en vue
    //'tauxNom', // bug sur ancien tbl, pas utilisé car recalculé en vue

    'tauxHoraireDate', // les taux sont mieux calculés maintenant
    'tauxHoraireValeur', // les taux sont mieux calculés maintenant
    'tauxMajoreHoraireDate', // les taux sont mieux calculés maintenant
    'tauxMajoreHoraireValeur', // les taux sont mieux calculés maintenant

    //'numeroAvenant', // pb calcul ancien v23

    /* à contrôler + finement */
    //'titreCourt', // lié au pb parentalité des avenants ??
    'totalHETD',  // OK, la règle n'est plus la même
    'hetdContrat',
    'avenant1', //	contrat1	modifieComplete	n	titre reste => avenants qui se transforment en contrat et vice versa ??
    // contrats concernés : 2479, 40336, 36972, 36028, 19628, 1912, 1854



    'DEMANDEE_APRES_RECRUTEMENT',
    'DATE_ORIGINE',
    'DATE_VALIDITEE',
    'ID',
    'PIECE_JOINTE_ID',
    'HEURES_POUR_SEUIL',

    // colonne supprimée
];

$onlyCols = [
@@ -80,7 +49,7 @@ $comparator->setKeyColumns($keyCols);
$comparator->setIgnoreColumns($ignoreCols);
$comparator->setOnlyColumns($onlyCols);

$comparator->setLimit(5000);
//$comparator->setLimit(100);

$result = $comparator->run();

+29 −61
Changes for config/autoload/unicaen-tbl.global.php: 29 added lines, 61 removed lines.
Original line number Diff line number Diff line
@@ -126,52 +126,39 @@ return [
                ],
            ],

            TblProvider::PIECE_JOINTE_DEMANDE => [
                'order'   => 7,
                'process' => 'DbDiff',
                'cols'    => [
                    'ANNEE_ID',
                    'CODE_INTERVENANT',
                    'INTERVENANT_ID',
                    'TYPE_PIECE_JOINTE_ID',
                    'HEURES_POUR_SEUIL',
                    'OBLIGATOIRE',
                    'HEURES_POUR_SEUIL_HETD',
                    'DUREE_VIE',
                ],
                'key'     => [
                    'INTERVENANT_ID',
                    'TYPE_PIECE_JOINTE_ID',
                ],
            ],

            TblProvider::PIECE_JOINTE_FOURNIE => [
                'order'              => 8,
                'process'            => 'DbDiff',
            TblProvider::DOSSIER => [
                'order'   => 13,
                'process' => \Dossier\Tbl\Process\DossierProcess::class,
                'cols'    => [
                    'ANNEE_ID',
                    'CODE_INTERVENANT',
                    'TYPE_PIECE_JOINTE_ID',
                    'INTERVENANT_ID',
                    'PIECE_JOINTE_ID',
                    'ACTIF',
                    'DOSSIER_ID',
                    'VALIDATION_ID',
                    'FICHIER_ID',
                    'DUREE_VIE',
                    'DATE_VALIDITE',
                    'DATE_ARCHIVE',
                    'COMPLETUDE_STATUT',
                    'COMPLETUDE_IDENTITE',
                    'COMPLETUDE_IDENTITE_COMP',
                    'COMPLETUDE_CONTACT',
                    'COMPLETUDE_ADRESSE',
                    'COMPLETUDE_INSEE',
                    'COMPLETUDE_BANQUE',
                    'COMPLETUDE_EMPLOYEUR',
                    'COMPLETUDE_AUTRES_1',
                    'COMPLETUDE_AUTRES_2',
                    'COMPLETUDE_AUTRES_3',
                    'COMPLETUDE_AUTRES_4',
                    'COMPLETUDE_AUTRES_5',
                    'COMPLETUDE_AVANT_RECRUTEMENT',
                    'COMPLETUDE_APRES_RECRUTEMENT',
                ],
                'key'     => [
                    'TYPE_PIECE_JOINTE_ID',
                    'INTERVENANT_ID',
                    'VALIDATION_ID',
                    'FICHIER_ID',
                ],
                'key_values_if_null' => [
                    'VALIDATION_ID' => 0,
                    'FICHIER_ID'    => 0,
                ],
            ],




            TblProvider::AGREMENT => [
                'order'              => 9,
                'process'            => 'DbDiff',
@@ -296,30 +283,6 @@ return [
                ],
            ],

            TblProvider::DOSSIER => [
                'order'   => 13,
                'process' => 'DbDiff',
                'cols'    => [
                    'ANNEE_ID',
                    'INTERVENANT_ID',
                    'ACTIF',
                    'DOSSIER_ID',
                    'VALIDATION_ID',
                    'COMPLETUDE_STATUT',
                    'COMPLETUDE_IDENTITE',
                    'COMPLETUDE_IDENTITE_COMP',
                    'COMPLETUDE_CONTACT',
                    'COMPLETUDE_ADRESSE',
                    'COMPLETUDE_INSEE',
                    'COMPLETUDE_BANQUE',
                    'COMPLETUDE_EMPLOYEUR',
                    'COMPLETUDE_AUTRES',
                ],
                'key'     => [
                    'INTERVENANT_ID',
                ],
            ],

            TblProvider::PAIEMENT => [
                'order'              => 14,
                'process'            => \Paiement\Tbl\Process\PaiementProcess::class,
@@ -369,7 +332,7 @@ return [

            TblProvider::PIECE_JOINTE => [
                'order'   => 15,
                'process' => 'DbDiff',
                'process' => \PieceJointe\Tbl\Process\PieceJointeProcess::class,
                'cols'    => [
                    'ANNEE_ID',
                    'TYPE_PIECE_JOINTE_ID',
@@ -380,6 +343,11 @@ return [
                    'VALIDEE',
                    'HEURES_POUR_SEUIL',
                    'OBLIGATOIRE',
                    'DEMANDEE_APRES_RECRUTEMENT',
                    'DATE_ORIGINE',
                    'DATE_VALIDITEE',
                    'SEUIL_HETD',

                ],
                'key'     => [
                    'TYPE_PIECE_JOINTE_ID',
+14 −14
Changes for data/ddl/table/PIECE_JOINTE_FICHIER.php: 14 added lines, 14 removed lines.
Original line number Diff line number Diff line
@@ -4,9 +4,9 @@

return [
    'name'        => 'PIECE_JOINTE_FICHIER',
    'temporary'   => FALSE,
    'logging'     => TRUE,
    'commentaire' => NULL,
    'temporary'   => false,
    'logging'     => true,
    'commentaire' => null,
    'sequence'    => 'PIECE_JOINTE_FICHIER_ID_SEQ',
    'columns'     => [
        'FICHIER_ID'      => [
@@ -14,25 +14,25 @@ return [
            'type'        => 'int',
            'bdd-type'    => 'NUMBER',
            'length'      => 0,
            'scale'       => NULL,
            'precision'   => NULL,
            'nullable'    => FALSE,
            'default'     => NULL,
            'scale'       => null,
            'precision'   => null,
            'nullable'    => false,
            'default'     => null,
            'position'    => 2,
            'commentaire' => NULL,
            'commentaire' => null,
        ],
        'PIECE_JOINTE_ID' => [
            'name'        => 'PIECE_JOINTE_ID',
            'type'        => 'int',
            'bdd-type'    => 'NUMBER',
            'length'      => 0,
            'scale'       => NULL,
            'precision'   => NULL,
            'nullable'    => FALSE,
            'default'     => NULL,
            'scale'       => null,
            'precision'   => null,
            'nullable'    => false,
            'default'     => null,
            'position'    => 1,
            'commentaire' => NULL,
        ],
            'commentaire' => null,
        ]
    ],
];

+27 −27
Changes for data/ddl/table/STATUT.php: 27 added lines, 27 removed lines.
Original line number Diff line number Diff line
@@ -287,11 +287,11 @@ return [
        ],
        'DOSSIER_ADRESSE'                => [
            'name'        => 'DOSSIER_ADRESSE',
            'type'        => 'bool',
            'type'        => 'int',
            'bdd-type'    => 'NUMBER',
            'length'      => 0,
            'scale'       => NULL,
            'precision'   => 1,
            'precision'   => NULL,
            'nullable'    => FALSE,
            'default'     => '1',
            'position'    => 19,
@@ -299,11 +299,11 @@ return [
        ],
        'DOSSIER_AUTRE_1'                => [
            'name'        => 'DOSSIER_AUTRE_1',
            'type'        => 'bool',
            'type'        => 'int',
            'bdd-type'    => 'NUMBER',
            'length'      => 0,
            'scale'       => NULL,
            'precision'   => 1,
            'precision'   => NULL,
            'nullable'    => FALSE,
            'default'     => '0',
            'position'    => 23,
@@ -335,11 +335,11 @@ return [
        ],
        'DOSSIER_AUTRE_2'                => [
            'name'        => 'DOSSIER_AUTRE_2',
            'type'        => 'bool',
            'type'        => 'int',
            'bdd-type'    => 'NUMBER',
            'length'      => 0,
            'scale'       => NULL,
            'precision'   => 1,
            'precision'   => NULL,
            'nullable'    => FALSE,
            'default'     => '0',
            'position'    => 26,
@@ -371,11 +371,11 @@ return [
        ],
        'DOSSIER_AUTRE_3'                => [
            'name'        => 'DOSSIER_AUTRE_3',
            'type'        => 'bool',
            'type'        => 'int',
            'bdd-type'    => 'NUMBER',
            'length'      => 0,
            'scale'       => NULL,
            'precision'   => 1,
            'precision'   => NULL,
            'nullable'    => FALSE,
            'default'     => '0',
            'position'    => 29,
@@ -407,11 +407,11 @@ return [
        ],
        'DOSSIER_AUTRE_4'                => [
            'name'        => 'DOSSIER_AUTRE_4',
            'type'        => 'bool',
            'type'        => 'int',
            'bdd-type'    => 'NUMBER',
            'length'      => 0,
            'scale'       => NULL,
            'precision'   => 1,
            'precision'   => NULL,
            'nullable'    => FALSE,
            'default'     => '0',
            'position'    => 32,
@@ -443,11 +443,11 @@ return [
        ],
        'DOSSIER_AUTRE_5'                => [
            'name'        => 'DOSSIER_AUTRE_5',
            'type'        => 'bool',
            'type'        => 'int',
            'bdd-type'    => 'NUMBER',
            'length'      => 0,
            'scale'       => NULL,
            'precision'   => 1,
            'precision'   => NULL,
            'nullable'    => FALSE,
            'default'     => '0',
            'position'    => 35,
@@ -479,11 +479,11 @@ return [
        ],
        'DOSSIER_BANQUE'                 => [
            'name'        => 'DOSSIER_BANQUE',
            'type'        => 'bool',
            'type'        => 'int',
            'bdd-type'    => 'NUMBER',
            'length'      => 0,
            'scale'       => NULL,
            'precision'   => 1,
            'precision'   => NULL,
            'nullable'    => FALSE,
            'default'     => '1',
            'position'    => 20,
@@ -491,11 +491,11 @@ return [
        ],
        'DOSSIER_CONTACT'                => [
            'name'        => 'DOSSIER_CONTACT',
            'type'        => 'bool',
            'type'        => 'int',
            'bdd-type'    => 'NUMBER',
            'length'      => 0,
            'scale'       => NULL,
            'precision'   => 1,
            'precision'   => NULL,
            'nullable'    => FALSE,
            'default'     => '1',
            'position'    => 16,
@@ -527,11 +527,11 @@ return [
        ],
        'DOSSIER_EMPLOYEUR'              => [
            'name'        => 'DOSSIER_EMPLOYEUR',
            'type'        => 'bool',
            'type'        => 'int',
            'bdd-type'    => 'NUMBER',
            'length'      => 0,
            'scale'       => NULL,
            'precision'   => 1,
            'precision'   => NULL,
            'nullable'    => FALSE,
            'default'     => '0',
            'position'    => 22,
@@ -551,25 +551,25 @@ return [
        ],
        'DOSSIER_IDENTITE_COMP'          => [
            'name'        => 'DOSSIER_IDENTITE_COMP',
            'type'        => 'bool',
            'type'        => 'int',
            'bdd-type'    => 'NUMBER',
            'length'      => 0,
            'scale'       => NULL,
            'precision'   => 1,
            'precision'   => NULL,
            'nullable'    => FALSE,
            'default'     => '1',
            'default'     => '0',
            'position'    => 15,
            'commentaire' => NULL,
        ],
        'DOSSIER_INSEE'                  => [
            'name'        => 'DOSSIER_INSEE',
            'type'        => 'bool',
            'type'        => 'int',
            'bdd-type'    => 'NUMBER',
            'length'      => 0,
            'scale'       => NULL,
            'precision'   => 1,
            'precision'   => NULL,
            'nullable'    => FALSE,
            'default'     => '1',
            'default'     => '0',
            'position'    => 21,
            'commentaire' => NULL,
        ],
@@ -599,13 +599,13 @@ return [
        ],
        'DOSSIER_STATUT'                 => [
            'name'        => 'DOSSIER_STATUT',
            'type'        => 'bool',
            'type'        => 'int',
            'bdd-type'    => 'NUMBER',
            'length'      => 0,
            'scale'       => NULL,
            'precision'   => 1,
            'precision'   => NULL,
            'nullable'    => FALSE,
            'default'     => '1',
            'default'     => '0',
            'position'    => 86,
            'commentaire' => NULL,
        ],
+74 −2
Changes for data/ddl/table/TBL_DOSSIER.php: 74 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -45,8 +45,8 @@ return [
            'position'    => 11,
            'commentaire' => NULL,
        ],
        'COMPLETUDE_AUTRES'        => [
            'name'        => 'COMPLETUDE_AUTRES',
        'COMPLETUDE_AUTRE_1'        => [
            'name'        => 'COMPLETUDE_AUTRE_1',
            'type'        => 'int',
            'bdd-type'    => 'NUMBER',
            'length'      => 0,
@@ -57,6 +57,54 @@ return [
            'position'    => 15,
            'commentaire' => NULL,
        ],
        'COMPLETUDE_AUTRE_2'        => [
            'name'        => 'COMPLETUDE_AUTRE_2',
            'type'        => 'int',
            'bdd-type'    => 'NUMBER',
            'length'      => 0,
            'scale'       => NULL,
            'precision'   => NULL,
            'nullable'    => TRUE,
            'default'     => '0',
            'position'    => 16,
            'commentaire' => NULL,
        ],
        'COMPLETUDE_AUTRE_3'        => [
            'name'        => 'COMPLETUDE_AUTRE_3',
            'type'        => 'int',
            'bdd-type'    => 'NUMBER',
            'length'      => 0,
            'scale'       => NULL,
            'precision'   => NULL,
            'nullable'    => TRUE,
            'default'     => '0',
            'position'    => 17,
            'commentaire' => NULL,
        ],
        'COMPLETUDE_AUTRE_4'        => [
            'name'        => 'COMPLETUDE_AUTRE_4',
            'type'        => 'int',
            'bdd-type'    => 'NUMBER',
            'length'      => 0,
            'scale'       => NULL,
            'precision'   => NULL,
            'nullable'    => TRUE,
            'default'     => '0',
            'position'    => 18,
            'commentaire' => NULL,
        ],
        'COMPLETUDE_AUTRE_5'        => [
            'name'        => 'COMPLETUDE_AUTRE_5',
            'type'        => 'int',
            'bdd-type'    => 'NUMBER',
            'length'      => 0,
            'scale'       => NULL,
            'precision'   => NULL,
            'nullable'    => TRUE,
            'default'     => '0',
            'position'    => 19,
            'commentaire' => NULL,
        ],
        'COMPLETUDE_BANQUE'        => [
            'name'        => 'COMPLETUDE_BANQUE',
            'type'        => 'int',
@@ -141,6 +189,30 @@ return [
            'position'    => 7,
            'commentaire' => NULL,
        ],
        'COMPLETUDE_AVANT_RECRUTEMENT'        => [
            'name'        => 'COMPLETUDE_AVANT_RECRUTEMENT',
            'type'        => 'int',
            'bdd-type'    => 'NUMBER',
            'length'      => 0,
            'scale'       => NULL,
            'precision'   => NULL,
            'nullable'    => FALSE,
            'default'     => '0',
            'position'    => 19,
            'commentaire' => 'Complétude de la première partie des données personnelles',
        ],
        'COMPLETUDE_APRES_RECRUTEMENT' => [
            'name'        => 'COMPLETUDE_APRES_RECRUTEMENT',
            'type'        => 'int',
            'bdd-type'    => 'NUMBER',
            'length'      => 0,
            'scale'       => NULL,
            'precision'   => NULL,
            'nullable'    => FALSE,
            'default'     => '0',
            'position'    => 20,
            'commentaire' => 'Complétude de la deuxième partie des données personnelles',
        ],
        'DOSSIER_ID'               => [
            'name'        => 'DOSSIER_ID',
            'type'        => 'int',
Loading