Merge pull request 'gestion profil' (#228) from features/fiche_refonte into develop
Reviewed-on: #228
This commit was merged in pull request #228.
This commit is contained in:
@@ -0,0 +1,35 @@
|
|||||||
|
package io.gmss.fiscad.entities.interface_sigibe;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
|
||||||
|
import io.gmss.fiscad.deserializer.LocalDateDeserializer;
|
||||||
|
import io.gmss.fiscad.entities.BaseEntity;
|
||||||
|
import jakarta.persistence.Entity;
|
||||||
|
import jakarta.persistence.GeneratedValue;
|
||||||
|
import jakarta.persistence.GenerationType;
|
||||||
|
import jakarta.persistence.Id;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.EqualsAndHashCode;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.time.LocalDate;
|
||||||
|
|
||||||
|
@EqualsAndHashCode(callSuper = true)
|
||||||
|
@Entity
|
||||||
|
@Data
|
||||||
|
@NoArgsConstructor
|
||||||
|
@AllArgsConstructor
|
||||||
|
public class EavisContribuable extends BaseEntity implements Serializable {
|
||||||
|
@Id
|
||||||
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||||
|
private Long id;
|
||||||
|
private Long idAvis;
|
||||||
|
private Long idContribuableFoncier;
|
||||||
|
private String ifu;
|
||||||
|
private String statut;
|
||||||
|
@JsonFormat(pattern = "dd-MM-yyyy")
|
||||||
|
@JsonDeserialize(using = LocalDateDeserializer.class)
|
||||||
|
private LocalDate dateInformation;
|
||||||
|
}
|
||||||
@@ -1,7 +1,6 @@
|
|||||||
package io.gmss.fiscad.entities.interface_sigibe;
|
package io.gmss.fiscad.entities.interface_sigibe;
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
|
||||||
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
|
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
|
||||||
import io.gmss.fiscad.deserializer.LocalDateDeserializer;
|
import io.gmss.fiscad.deserializer.LocalDateDeserializer;
|
||||||
import io.gmss.fiscad.entities.BaseEntity;
|
import io.gmss.fiscad.entities.BaseEntity;
|
||||||
@@ -21,12 +20,12 @@ import java.time.LocalDate;
|
|||||||
@Data
|
@Data
|
||||||
@NoArgsConstructor
|
@NoArgsConstructor
|
||||||
@AllArgsConstructor
|
@AllArgsConstructor
|
||||||
public class DeclarationSpontaneBien extends BaseEntity implements Serializable {
|
public class EdeclarationPropriete extends BaseEntity implements Serializable {
|
||||||
@Id
|
@Id
|
||||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||||
private Long id;
|
private Long id;
|
||||||
private Long idImposition ;
|
private Long idImpot ;
|
||||||
private String rImposition ;
|
private String rImpot ;
|
||||||
private String ifu ;
|
private String ifu ;
|
||||||
private String rCommune ;
|
private String rCommune ;
|
||||||
private String rQuartier ;
|
private String rQuartier ;
|
||||||
@@ -4,7 +4,6 @@ import com.fasterxml.jackson.annotation.JsonFormat;
|
|||||||
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
|
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
|
||||||
import io.gmss.fiscad.deserializer.LocalDateDeserializer;
|
import io.gmss.fiscad.deserializer.LocalDateDeserializer;
|
||||||
import io.gmss.fiscad.entities.BaseEntity;
|
import io.gmss.fiscad.entities.BaseEntity;
|
||||||
import io.gmss.fiscad.enums.SourceDonnee;
|
|
||||||
import jakarta.persistence.*;
|
import jakarta.persistence.*;
|
||||||
import lombok.AllArgsConstructor;
|
import lombok.AllArgsConstructor;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
@@ -19,7 +18,7 @@ import java.time.LocalDate;
|
|||||||
@Data
|
@Data
|
||||||
@NoArgsConstructor
|
@NoArgsConstructor
|
||||||
@AllArgsConstructor
|
@AllArgsConstructor
|
||||||
public class PaiementAvis extends BaseEntity implements Serializable {
|
public class EpaiementAvis extends BaseEntity implements Serializable {
|
||||||
@Id
|
@Id
|
||||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||||
private Long id;
|
private Long id;
|
||||||
@@ -33,6 +32,11 @@ public class PaiementAvis extends BaseEntity implements Serializable {
|
|||||||
private String idImpotNature;
|
private String idImpotNature;
|
||||||
private String ifu;
|
private String ifu;
|
||||||
private String rCommune;
|
private String rCommune;
|
||||||
|
private String rQuartier;
|
||||||
|
private String qipQuartier;
|
||||||
|
private String qipIlot;
|
||||||
|
private String qipParcelle;
|
||||||
|
private String nup;
|
||||||
@JsonFormat(pattern = "dd-MM-yyyy")
|
@JsonFormat(pattern = "dd-MM-yyyy")
|
||||||
@JsonDeserialize(using = LocalDateDeserializer.class)
|
@JsonDeserialize(using = LocalDateDeserializer.class)
|
||||||
private LocalDate dateValidation;
|
private LocalDate dateValidation;
|
||||||
@@ -46,5 +50,5 @@ public class PaiementAvis extends BaseEntity implements Serializable {
|
|||||||
@JsonDeserialize(using = LocalDateDeserializer.class)
|
@JsonDeserialize(using = LocalDateDeserializer.class)
|
||||||
private LocalDate dateInformation;
|
private LocalDate dateInformation;
|
||||||
private Long montantPayer;
|
private Long montantPayer;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -73,5 +73,6 @@ public enum UserProfile {
|
|||||||
EBANQUE_CASCHEF,
|
EBANQUE_CASCHEF,
|
||||||
ENRAGENT,
|
ENRAGENT,
|
||||||
ENRCHEF,
|
ENRCHEF,
|
||||||
AMFRE
|
AMFRE,
|
||||||
|
GESSECTCHEF
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,16 +19,19 @@ CREATE TABLE e_avis (
|
|||||||
CREATE TABLE e_avis_detail (
|
CREATE TABLE e_avis_detail (
|
||||||
id_avis_detail BIGINT NOT NULL,
|
id_avis_detail BIGINT NOT NULL,
|
||||||
id_avis BIGINT NOT NULL,
|
id_avis BIGINT NOT NULL,
|
||||||
|
r_avis VARCHAR(50),
|
||||||
id_impot_nature VARCHAR(50),
|
id_impot_nature VARCHAR(50),
|
||||||
id_unite_foncier BIGINT NOT NULL,
|
id_unite_foncier BIGINT NOT NULL,
|
||||||
nup VARCHAR(20),
|
nup VARCHAR(20),
|
||||||
r_quartier VARCHAR(50),
|
r_quartier VARCHAR(50),
|
||||||
qip_quartier VARCHAR(10),
|
qip_quartier VARCHAR(10),
|
||||||
|
qip_ilot VARCHAR(10),
|
||||||
qip_parcelle VARCHAR(10),
|
qip_parcelle VARCHAR(10),
|
||||||
batiment VARCHAR(10),
|
batiment VARCHAR(10),
|
||||||
unite_logement VARCHAR(10),
|
unite_logement VARCHAR(10),
|
||||||
montant_base_imposition NUMERIC(22,3),
|
montant_base_imposition NUMERIC(22,3),
|
||||||
montant_valeur_locative NUMERIC(22,3),
|
|
||||||
taux NUMERIC(22,10),
|
taux NUMERIC(22,10),
|
||||||
montant_du NUMERIC(22,3)
|
montant_du NUMERIC(22,3),
|
||||||
|
penalite NUMERIC(22,3),
|
||||||
|
booleen_parcelle_contact boolean
|
||||||
);
|
);
|
||||||
@@ -1,5 +1,4 @@
|
|||||||
-----------------
|
----------------
|
||||||
|
|
||||||
create or replace view e_avis_view as
|
create or replace view e_avis_view as
|
||||||
WITH first_parcelle_imposition AS (
|
WITH first_parcelle_imposition AS (
|
||||||
SELECT DISTINCT ON (personne_id)
|
SELECT DISTINCT ON (personne_id)
|
||||||
@@ -124,13 +123,11 @@ FROM impositions_tfu imp
|
|||||||
ON st.id = cca.structure_id
|
ON st.id = cca.structure_id
|
||||||
where dimp.personne_id is not null
|
where dimp.personne_id is not null
|
||||||
order by exo.annee,dimp.parcelle_id,dimp.nature_impot, dimp.montant_taxe-coalesce(dimp.acompte,0)-coalesce(dimp.retenu_irf,0) desc ;
|
order by exo.annee,dimp.parcelle_id,dimp.nature_impot, dimp.montant_taxe-coalesce(dimp.acompte,0)-coalesce(dimp.retenu_irf,0) desc ;
|
||||||
and dimp.ifu='208558';
|
-- and dimp.ifu='208558';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
---------------------------------------------------
|
---------------------------------------------------
|
||||||
|
/*
|
||||||
select * from e_avis_detail_view
|
select * from e_avis_detail_view
|
||||||
where qip_quartier='6431' and qip_ilot='1656' and qip_parcelle='C' ;
|
where qip_quartier='6431' and qip_ilot='1656' and qip_parcelle='C' ;
|
||||||
|
|
||||||
@@ -146,3 +143,5 @@ where not exists(select 1 from parcelle_view pv
|
|||||||
|
|
||||||
select penalite
|
select penalite
|
||||||
from donnees_imposition_tfu;
|
from donnees_imposition_tfu;
|
||||||
|
|
||||||
|
*/
|
||||||
@@ -1,11 +1,12 @@
|
|||||||
-----------------
|
-----------------
|
||||||
|
|
||||||
create or replace view parcelle_view as
|
create or replace view e_parcelle_view as
|
||||||
select distinct q.code as r_quartier,q.nom,p.nup, p.q,p.i,p.p
|
select distinct q.code as r_quartier,q.nom,p.nup, p.q,p.i,p.p
|
||||||
from parcelle p
|
from parcelle p
|
||||||
inner join quartier q on q.id=p.quartier_id ;
|
inner join quartier q on q.id=p.quartier_id ;
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
select * from donnees_imposition_tfu dimp
|
select * from donnees_imposition_tfu dimp
|
||||||
where not exists(
|
where not exists(
|
||||||
select * from parcelle p
|
select * from parcelle p
|
||||||
@@ -13,9 +14,7 @@ select * from parcelle p
|
|||||||
where dimp.q=p.q and dimp.ilot=p.i and dimp.parcelle=p.p);
|
where dimp.q=p.q and dimp.ilot=p.i and dimp.parcelle=p.p);
|
||||||
|
|
||||||
select * from parcelle_view;
|
select * from parcelle_view;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
select * from impositions_tfu;
|
select * from impositions_tfu;
|
||||||
|
|
||||||
|
*/
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user