Compare commits
2 Commits
2b2805a125
...
6b954c7467
| Author | SHA1 | Date | |
|---|---|---|---|
| 6b954c7467 | |||
| 71e566da25 |
@@ -116,52 +116,52 @@ public class DonneesImpositionTfuController {
|
||||
}
|
||||
}
|
||||
|
||||
@GetMapping("/all")
|
||||
public ResponseEntity<?> getAllDonneesImpositionTfuList() {
|
||||
try {
|
||||
return new ResponseEntity<>(
|
||||
new ApiResponse<>(true, donneesImpositionTfuService.getDonneesImpositionTfuList(), "Liste des impositions chargée avec succès."),
|
||||
HttpStatus.OK
|
||||
);
|
||||
} catch (HttpClientErrorException.MethodNotAllowed e) {
|
||||
logger.error(e.getLocalizedMessage());
|
||||
return new ResponseEntity<>(new ApiResponse(false, null, "Method POST/GET is required."), HttpStatus.OK);
|
||||
} catch (NotFoundException | BadRequestException | MyFileNotFoundException | ResourceNotFoundException |
|
||||
FileStorageException e) {
|
||||
logger.error(e.getLocalizedMessage());
|
||||
return new ResponseEntity<>(new ApiResponse(false, null, e.getMessage()), HttpStatus.OK);
|
||||
} catch (NullPointerException e) {
|
||||
logger.error(e.getLocalizedMessage());
|
||||
return new ResponseEntity<>(new ApiResponse(false, null, "Null value has been detected {" + e.getMessage() + "}."), HttpStatus.OK);
|
||||
} catch (Exception e) {
|
||||
logger.error(e.getLocalizedMessage());
|
||||
return new ResponseEntity<>(new ApiResponse(false, null, "An error has been occur and the content is {" + e.getMessage() + "}."), HttpStatus.OK);
|
||||
}
|
||||
}
|
||||
// @GetMapping("/all")
|
||||
// public ResponseEntity<?> getAllDonneesImpositionTfuList() {
|
||||
// try {
|
||||
// return new ResponseEntity<>(
|
||||
// new ApiResponse<>(true, donneesImpositionTfuService.getDonneesImpositionTfuList(), "Liste des impositions chargée avec succès."),
|
||||
// HttpStatus.OK
|
||||
// );
|
||||
// } catch (HttpClientErrorException.MethodNotAllowed e) {
|
||||
// logger.error(e.getLocalizedMessage());
|
||||
// return new ResponseEntity<>(new ApiResponse(false, null, "Method POST/GET is required."), HttpStatus.OK);
|
||||
// } catch (NotFoundException | BadRequestException | MyFileNotFoundException | ResourceNotFoundException |
|
||||
// FileStorageException e) {
|
||||
// logger.error(e.getLocalizedMessage());
|
||||
// return new ResponseEntity<>(new ApiResponse(false, null, e.getMessage()), HttpStatus.OK);
|
||||
// } catch (NullPointerException e) {
|
||||
// logger.error(e.getLocalizedMessage());
|
||||
// return new ResponseEntity<>(new ApiResponse(false, null, "Null value has been detected {" + e.getMessage() + "}."), HttpStatus.OK);
|
||||
// } catch (Exception e) {
|
||||
// logger.error(e.getLocalizedMessage());
|
||||
// return new ResponseEntity<>(new ApiResponse(false, null, "An error has been occur and the content is {" + e.getMessage() + "}."), HttpStatus.OK);
|
||||
// }
|
||||
// }
|
||||
|
||||
@GetMapping("/all-paged")
|
||||
public ResponseEntity<?> getAllDonneesImpositionTfuPaged(@RequestParam int pageNo, @RequestParam int pageSize) {
|
||||
try {
|
||||
Pageable pageable = PageRequest.of(pageNo, pageSize);
|
||||
return new ResponseEntity<>(
|
||||
new ApiResponse<>(true, donneesImpositionTfuService.getDonneesImpositionTfuList(pageable), "Liste des impositions chargée avec succès."),
|
||||
HttpStatus.OK
|
||||
);
|
||||
} catch (HttpClientErrorException.MethodNotAllowed e) {
|
||||
logger.error(e.getLocalizedMessage());
|
||||
return new ResponseEntity<>(new ApiResponse(false, null, "Method POST/GET is required."), HttpStatus.OK);
|
||||
} catch (NotFoundException | BadRequestException | MyFileNotFoundException | ResourceNotFoundException |
|
||||
FileStorageException e) {
|
||||
logger.error(e.getLocalizedMessage());
|
||||
return new ResponseEntity<>(new ApiResponse(false, null, e.getMessage()), HttpStatus.OK);
|
||||
} catch (NullPointerException e) {
|
||||
logger.error(e.getLocalizedMessage());
|
||||
return new ResponseEntity<>(new ApiResponse(false, null, "Null value has been detected {" + e.getMessage() + "}."), HttpStatus.OK);
|
||||
} catch (Exception e) {
|
||||
logger.error(e.getLocalizedMessage());
|
||||
return new ResponseEntity<>(new ApiResponse(false, null, "An error has been occur and the content is {" + e.getMessage() + "}."), HttpStatus.OK);
|
||||
}
|
||||
}
|
||||
// @GetMapping("/all-paged")
|
||||
// public ResponseEntity<?> getAllDonneesImpositionTfuPaged(@RequestParam int pageNo, @RequestParam int pageSize) {
|
||||
// try {
|
||||
// Pageable pageable = PageRequest.of(pageNo, pageSize);
|
||||
// return new ResponseEntity<>(
|
||||
// new ApiResponse<>(true, donneesImpositionTfuService.getDonneesImpositionTfuList(pageable), "Liste des impositions chargée avec succès."),
|
||||
// HttpStatus.OK
|
||||
// );
|
||||
// } catch (HttpClientErrorException.MethodNotAllowed e) {
|
||||
// logger.error(e.getLocalizedMessage());
|
||||
// return new ResponseEntity<>(new ApiResponse(false, null, "Method POST/GET is required."), HttpStatus.OK);
|
||||
// } catch (NotFoundException | BadRequestException | MyFileNotFoundException | ResourceNotFoundException |
|
||||
// FileStorageException e) {
|
||||
// logger.error(e.getLocalizedMessage());
|
||||
// return new ResponseEntity<>(new ApiResponse(false, null, e.getMessage()), HttpStatus.OK);
|
||||
// } catch (NullPointerException e) {
|
||||
// logger.error(e.getLocalizedMessage());
|
||||
// return new ResponseEntity<>(new ApiResponse(false, null, "Null value has been detected {" + e.getMessage() + "}."), HttpStatus.OK);
|
||||
// } catch (Exception e) {
|
||||
// logger.error(e.getLocalizedMessage());
|
||||
// return new ResponseEntity<>(new ApiResponse(false, null, "An error has been occur and the content is {" + e.getMessage() + "}."), HttpStatus.OK);
|
||||
// }
|
||||
// }
|
||||
|
||||
|
||||
@GetMapping("/all-page/by-imposition-id/{impositionId}")
|
||||
|
||||
@@ -0,0 +1,62 @@
|
||||
package io.gmss.fiscad.entities.interface_sigibe;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
|
||||
import io.gmss.fiscad.deserializer.LocalDateDeserializer;
|
||||
import io.gmss.fiscad.entities.BaseEntity;
|
||||
import io.gmss.fiscad.entities.decoupage.Quartier;
|
||||
import io.gmss.fiscad.entities.infocad.parametre.Personne;
|
||||
import jakarta.persistence.*;
|
||||
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 DeclarationSpontaneBien extends BaseEntity implements Serializable {
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
private Long id;
|
||||
private Long idImposition ;
|
||||
private String rImposition ;
|
||||
private String ifu ;
|
||||
private String rCommune ;
|
||||
private String rQuartier ;
|
||||
private String qipQuartier;
|
||||
private String qipIlot;
|
||||
private String qipParcelle;
|
||||
private String nup;
|
||||
private String gpsLatitude;
|
||||
private String gpsLongitude;
|
||||
private String commentaire;
|
||||
@JsonFormat(pattern = "dd-MM-yyyy")
|
||||
@JsonDeserialize(using = LocalDateDeserializer.class)
|
||||
private LocalDate dateValidation;
|
||||
@JsonFormat(pattern = "dd-MM-yyyy")
|
||||
@JsonDeserialize(using = LocalDateDeserializer.class)
|
||||
private LocalDate dateInformation;
|
||||
private Long valeurBatiment;
|
||||
private Long nub;
|
||||
private Long nul;
|
||||
private Long montantLocatifAnnuel ;
|
||||
@JsonFormat(pattern = "dd-MM-yyyy")
|
||||
@JsonDeserialize(using = LocalDateDeserializer.class)
|
||||
private LocalDate dateConstruction;
|
||||
private Float superficieSolBat;
|
||||
private Float superficieSolUlot;
|
||||
private Float superficieParcelle;
|
||||
private String usage;
|
||||
private Boolean bati;
|
||||
@ManyToOne
|
||||
private Personne personne;
|
||||
@ManyToOne
|
||||
private Quartier quartier;
|
||||
}
|
||||
@@ -0,0 +1,58 @@
|
||||
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 io.gmss.fiscad.entities.infocad.parametre.Personne;
|
||||
import io.gmss.fiscad.entities.infocad.parametre.PositionRepresentation;
|
||||
import io.gmss.fiscad.entities.infocad.parametre.TypeContestation;
|
||||
import io.gmss.fiscad.entities.infocad.parametre.TypeRepresentation;
|
||||
import io.gmss.fiscad.enums.SourceDonnee;
|
||||
import io.gmss.fiscad.enums.TypeDroit;
|
||||
import jakarta.persistence.*;
|
||||
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 EpaiementAcompte extends BaseEntity implements Serializable {
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
private Long id;
|
||||
private Long idPaiementAcompte;
|
||||
private Long idPaiementImpot;
|
||||
private String rDoc;
|
||||
private String rImpot;
|
||||
private String idImpotType;
|
||||
private String idImpotNature;
|
||||
private String ifu;
|
||||
private String rCommune;
|
||||
private String rQuartier;
|
||||
private String qipQuartier;
|
||||
private String qipIlot;
|
||||
private String qipParcelle;
|
||||
private String nup;
|
||||
private Long exercice;
|
||||
@JsonFormat(pattern = "dd-MM-yyyy")
|
||||
@JsonDeserialize(using = LocalDateDeserializer.class)
|
||||
private LocalDate dateValidation;
|
||||
@JsonFormat(pattern = "dd-MM-yyyy")
|
||||
@JsonDeserialize(using = LocalDateDeserializer.class)
|
||||
private LocalDate dateAvisCredit;
|
||||
@JsonFormat(pattern = "dd-MM-yyyy")
|
||||
@JsonDeserialize(using = LocalDateDeserializer.class)
|
||||
private LocalDate dateRapprochement;
|
||||
@JsonFormat(pattern = "dd-MM-yyyy")
|
||||
@JsonDeserialize(using = LocalDateDeserializer.class)
|
||||
private LocalDate dateInformation;
|
||||
private Long montantPayer;
|
||||
}
|
||||
@@ -0,0 +1,55 @@
|
||||
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 io.gmss.fiscad.enums.SourceDonnee;
|
||||
import jakarta.persistence.*;
|
||||
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 EpaiementRetenu extends BaseEntity implements Serializable {
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
private Long id;
|
||||
private Long idPaiementRetenue;
|
||||
private Long idEdiGenerique;
|
||||
private Long idPaiementImpot;
|
||||
private String rDoc;
|
||||
private String rImpot;
|
||||
private String idImpotType;
|
||||
private String idImpotNature;
|
||||
private String ifuPayeur;
|
||||
private String ifuRetenue;
|
||||
private String rCommune;
|
||||
private String rQuartier;
|
||||
private String qipQuartier;
|
||||
private String qipIlot;
|
||||
private String qipParcelle;
|
||||
private String nup;
|
||||
private Long exercice;
|
||||
@JsonFormat(pattern = "dd-MM-yyyy")
|
||||
@JsonDeserialize(using = LocalDateDeserializer.class)
|
||||
private LocalDate dateValidation;
|
||||
@JsonFormat(pattern = "dd-MM-yyyy")
|
||||
@JsonDeserialize(using = LocalDateDeserializer.class)
|
||||
private LocalDate dateAvisCredit;
|
||||
@JsonFormat(pattern = "dd-MM-yyyy")
|
||||
@JsonDeserialize(using = LocalDateDeserializer.class)
|
||||
private LocalDate dateRapprochement;
|
||||
@JsonFormat(pattern = "dd-MM-yyyy")
|
||||
@JsonDeserialize(using = LocalDateDeserializer.class)
|
||||
private LocalDate dateInformation;
|
||||
private Long montantPayer;
|
||||
}
|
||||
@@ -0,0 +1,50 @@
|
||||
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 io.gmss.fiscad.enums.SourceDonnee;
|
||||
import jakarta.persistence.*;
|
||||
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 PaiementAvis extends BaseEntity implements Serializable {
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
private Long id;
|
||||
private Long idPaiementImpot;
|
||||
private Long idAvis;
|
||||
private Long idUniteFoncier;
|
||||
private Long idContribuableFoncier;
|
||||
private String rDoc;
|
||||
private String rImpot;
|
||||
private String idImpotType;
|
||||
private String idImpotNature;
|
||||
private String ifu;
|
||||
private String rCommune;
|
||||
@JsonFormat(pattern = "dd-MM-yyyy")
|
||||
@JsonDeserialize(using = LocalDateDeserializer.class)
|
||||
private LocalDate dateValidation;
|
||||
@JsonFormat(pattern = "dd-MM-yyyy")
|
||||
@JsonDeserialize(using = LocalDateDeserializer.class)
|
||||
private LocalDate dateAvisCredit;
|
||||
@JsonFormat(pattern = "dd-MM-yyyy")
|
||||
@JsonDeserialize(using = LocalDateDeserializer.class)
|
||||
private LocalDate dateRapprochement;
|
||||
@JsonFormat(pattern = "dd-MM-yyyy")
|
||||
@JsonDeserialize(using = LocalDateDeserializer.class)
|
||||
private LocalDate dateInformation;
|
||||
private Long montantPayer;
|
||||
|
||||
}
|
||||
@@ -62,4 +62,6 @@ public class CommuneCentreAssignation extends BaseEntity implements Serializable
|
||||
private String nc;
|
||||
|
||||
private String ifu;
|
||||
|
||||
private String adresseContact ;
|
||||
}
|
||||
@@ -114,6 +114,10 @@ public class DonneesImpositionTfu extends BaseEntity implements Serializable {
|
||||
private Float tauxTfu;
|
||||
private Long tfuPiscine;
|
||||
private Float montantTaxe;
|
||||
private Float penalite;
|
||||
private Float retenuIrf ;
|
||||
private Float acompte ;
|
||||
private Float montantRestant ;
|
||||
private Float montantTaxeBrut; //montant de la taxe calculée sans comparaisons avec TFU MINI
|
||||
private Float tfuCalculeTauxPropParc;
|
||||
private Float tfuSuperficieAuSolReel;
|
||||
|
||||
@@ -27,11 +27,11 @@ public class CommuneCentreAssignationPaylaodWeb {
|
||||
private String parcelleContactQ;
|
||||
private String parcelleContactI;
|
||||
private String parcelleContactP;
|
||||
private String adresseContact;
|
||||
|
||||
public CommuneCentreAssignationPaylaodWeb(Long id, String code, String nom, Long communeId, String communeCode, String communeNom, Long structureId, String structureCode, String structureNom, Long personneId, String personneNom, String personnePrenom, String personneRaisonSociale, String personneIfu, String personneNc, String personneNpi, Long parcelleContactId, String parcelleContactQuartierCode, String parcelleContactQ, String parcelleContactI, String parcelleContactP) {
|
||||
public CommuneCentreAssignationPaylaodWeb(Long id, Long communeId, String communeCode, String communeNom, Long structureId, String structureCode, String structureNom, Long personneId, String personneNom, String personnePrenom, String personneRaisonSociale, String personneIfu, String personneNc, String personneNpi, Long parcelleContactId, String parcelleContactQuartierCode, String parcelleContactQ, String parcelleContactI, String parcelleContactP,
|
||||
String adresseContact) {
|
||||
this.id = id;
|
||||
this.code = code;
|
||||
this.nom = nom;
|
||||
this.communeId = communeId;
|
||||
this.communeCode = communeCode;
|
||||
this.communeNom = communeNom;
|
||||
@@ -50,5 +50,6 @@ public class CommuneCentreAssignationPaylaodWeb {
|
||||
this.parcelleContactQ = parcelleContactQ;
|
||||
this.parcelleContactI = parcelleContactI;
|
||||
this.parcelleContactP = parcelleContactP;
|
||||
this.adresseContact=adresseContact;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -123,6 +123,12 @@ FROM impositions_tfu imp
|
||||
ON st.id = cca.structure_id
|
||||
where dimp.personne_id is not null ;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
---------------------------------------------------
|
||||
select * from e_avis_detail_view
|
||||
where qip_quartier='6431' and qip_ilot='1656' and qip_parcelle='C' ;
|
||||
|
||||
|
||||
@@ -0,0 +1,103 @@
|
||||
/**
|
||||
- recuperation et cumul des acomptes par exercice, commune, ifu et parcelle
|
||||
- recuperation et cumul des rirf par exercice, commune, ifu et parcelle
|
||||
*/
|
||||
|
||||
CREATE OR REPLACE FUNCTION public.maj_donnees_imposition_tfu_irf_(
|
||||
p_impositions_tfu_id BIGINT
|
||||
)
|
||||
RETURNS INTEGER
|
||||
LANGUAGE plpgsql
|
||||
AS $$
|
||||
DECLARE
|
||||
v_rows_inserted INTEGER;
|
||||
v_annee INTEGER;
|
||||
v_structure_id INTEGER;
|
||||
BEGIN
|
||||
SELECT ex.annee, it.structure_id
|
||||
INTO STRICT v_annee, v_structure_id
|
||||
FROM impositions_tfu it
|
||||
JOIN exercice ex ON ex.id = it.exercice_id
|
||||
WHERE it.id = p_impositions_tfu_id;
|
||||
|
||||
WITH cumulRetenu as (
|
||||
select ifu_retenue,
|
||||
r_commune,
|
||||
r_quartier,
|
||||
qip_quartier,
|
||||
qip_ilot,
|
||||
qip_parcelle,
|
||||
nup,
|
||||
exercice,
|
||||
sum(montant_payer) as cumul_retenu
|
||||
from epaiement_retenu
|
||||
where exercice = v_annee
|
||||
group by ifu_retenue, r_commune, r_quartier,
|
||||
qip_quartier, qip_ilot, qip_parcelle,
|
||||
nup, exercice
|
||||
)
|
||||
UPDATE donnees_imposition_tfu dimp
|
||||
SET
|
||||
retenu_irf = coalesce(cr.cumul_retenu,0),
|
||||
montant_restant = dimp.montant_taxe
|
||||
- coalesce(cr.cumul_retenu,0)
|
||||
FROM donnees_imposition_tfu dimp2
|
||||
LEFT JOIN cumulRetenu cr ON (
|
||||
cr.exercice = dimp2.annee
|
||||
AND cr.r_commune = dimp2.code_commune
|
||||
AND cr.ifu_retenue = dimp2.ifu
|
||||
AND cr.r_quartier = dimp2.code_quartier_village
|
||||
AND cr.qip_quartier = dimp2.q
|
||||
AND cr.qip_ilot = dimp2.ilot
|
||||
AND cr.qip_parcelle = dimp2.parcelle
|
||||
AND cr.nup = dimp2.nup
|
||||
AND cr.nup = dimp2.nup
|
||||
)
|
||||
WHERE dimp.id = dimp2.id
|
||||
AND dimp.impositions_tfu_id = p_impositions_tfu_id
|
||||
AND dimp.nature_impot ='IRF';
|
||||
|
||||
|
||||
WITH cumulAcompte as (
|
||||
select ifu,
|
||||
r_commune,
|
||||
r_quartier,
|
||||
qip_quartier,
|
||||
qip_ilot,
|
||||
qip_parcelle,
|
||||
nup,
|
||||
exercice,
|
||||
sum(montant_payer) as cumul_acompte
|
||||
from epaiement_acompte
|
||||
where exercice = v_annee
|
||||
group by ifu, r_commune, r_quartier,
|
||||
qip_quartier, qip_ilot, qip_parcelle,
|
||||
nup, exercice
|
||||
)
|
||||
UPDATE donnees_imposition_tfu dimp
|
||||
SET
|
||||
acompte = coalesce(ac.cumul_acompte,0),
|
||||
montant_restant = dimp.montant_taxe
|
||||
- coalesce(ac.cumul_acompte,0)
|
||||
FROM donnees_imposition_tfu dimp2
|
||||
LEFT JOIN cumulAcompte ac ON (
|
||||
ac.exercice = dimp2.annee
|
||||
AND ac.r_commune = dimp2.code_commune
|
||||
AND ac.ifu = dimp2.ifu
|
||||
AND ac.r_quartier = dimp2.code_quartier_village
|
||||
AND ac.qip_quartier = dimp2.q
|
||||
AND ac.qip_ilot = dimp2.ilot
|
||||
AND ac.qip_parcelle = dimp2.parcelle
|
||||
AND ac.nup = dimp2.nup
|
||||
)
|
||||
WHERE dimp.id = dimp2.id
|
||||
AND dimp.impositions_tfu_id = p_impositions_tfu_id
|
||||
AND dimp.nature_impot in ('FNB','FB');
|
||||
|
||||
GET DIAGNOSTICS v_rows_inserted = ROW_COUNT;
|
||||
|
||||
RETURN v_rows_inserted;
|
||||
END;
|
||||
$$ ;
|
||||
|
||||
|
||||
@@ -20,8 +20,6 @@ public interface CommuneCentreAssignationRepository extends JpaRepository<Commun
|
||||
value = """
|
||||
SELECT new io.gmss.fiscad.paylaods.request.crudweb.CommuneCentreAssignationPaylaodWeb(
|
||||
cca.id,
|
||||
cca.nc,
|
||||
cca.ifu,
|
||||
c.id,
|
||||
c.code,
|
||||
c.nom,
|
||||
@@ -39,7 +37,8 @@ public interface CommuneCentreAssignationRepository extends JpaRepository<Commun
|
||||
q.code,
|
||||
parc.q,
|
||||
parc.i,
|
||||
parc.p
|
||||
parc.p,
|
||||
cca.adresseContact
|
||||
)
|
||||
FROM CommuneCentreAssignation cca
|
||||
LEFT JOIN cca.commune c
|
||||
@@ -59,8 +58,6 @@ public interface CommuneCentreAssignationRepository extends JpaRepository<Commun
|
||||
value = """
|
||||
SELECT new io.gmss.fiscad.paylaods.request.crudweb.CommuneCentreAssignationPaylaodWeb(
|
||||
cca.id,
|
||||
cca.nc,
|
||||
cca.ifu,
|
||||
c.id,
|
||||
c.code,
|
||||
c.nom,
|
||||
@@ -78,7 +75,8 @@ public interface CommuneCentreAssignationRepository extends JpaRepository<Commun
|
||||
q.code,
|
||||
parc.q,
|
||||
parc.i,
|
||||
parc.p
|
||||
parc.p,
|
||||
cca.adresseContact
|
||||
)
|
||||
FROM CommuneCentreAssignation cca
|
||||
JOIN cca.structure s
|
||||
@@ -104,8 +102,6 @@ public interface CommuneCentreAssignationRepository extends JpaRepository<Commun
|
||||
value = """
|
||||
SELECT new io.gmss.fiscad.paylaods.request.crudweb.CommuneCentreAssignationPaylaodWeb(
|
||||
cca.id,
|
||||
cca.nc,
|
||||
cca.ifu,
|
||||
c.id,
|
||||
c.code,
|
||||
c.nom,
|
||||
@@ -123,7 +119,8 @@ public interface CommuneCentreAssignationRepository extends JpaRepository<Commun
|
||||
q.code,
|
||||
parc.q,
|
||||
parc.i,
|
||||
parc.p
|
||||
parc.p,
|
||||
cca.adresseContact
|
||||
)
|
||||
FROM CommuneCentreAssignation cca
|
||||
JOIN cca.commune c
|
||||
@@ -148,8 +145,6 @@ public interface CommuneCentreAssignationRepository extends JpaRepository<Commun
|
||||
value = """
|
||||
SELECT new io.gmss.fiscad.paylaods.request.crudweb.CommuneCentreAssignationPaylaodWeb(
|
||||
cca.id,
|
||||
cca.nc,
|
||||
cca.ifu,
|
||||
c.id,
|
||||
c.code,
|
||||
c.nom,
|
||||
@@ -167,7 +162,8 @@ public interface CommuneCentreAssignationRepository extends JpaRepository<Commun
|
||||
q.code,
|
||||
parc.q,
|
||||
parc.i,
|
||||
parc.p
|
||||
parc.p,
|
||||
cca.adresseContact
|
||||
)
|
||||
FROM CommuneCentreAssignation cca
|
||||
JOIN cca.structure s
|
||||
@@ -195,8 +191,6 @@ public interface CommuneCentreAssignationRepository extends JpaRepository<Commun
|
||||
@Query("""
|
||||
SELECT new io.gmss.fiscad.paylaods.request.crudweb.CommuneCentreAssignationPaylaodWeb(
|
||||
cca.id,
|
||||
cca.nc,
|
||||
cca.ifu,
|
||||
c.id,
|
||||
c.code,
|
||||
c.nom,
|
||||
@@ -214,7 +208,8 @@ public interface CommuneCentreAssignationRepository extends JpaRepository<Commun
|
||||
q.code,
|
||||
parc.q,
|
||||
parc.i,
|
||||
parc.p
|
||||
parc.p,
|
||||
cca.adresseContact
|
||||
)
|
||||
FROM CommuneCentreAssignation cca
|
||||
JOIN cca.structure s
|
||||
@@ -236,8 +231,6 @@ public interface CommuneCentreAssignationRepository extends JpaRepository<Commun
|
||||
@Query("""
|
||||
SELECT new io.gmss.fiscad.paylaods.request.crudweb.CommuneCentreAssignationPaylaodWeb(
|
||||
cca.id,
|
||||
cca.nc,
|
||||
cca.ifu,
|
||||
c.id,
|
||||
c.code,
|
||||
c.nom,
|
||||
@@ -255,7 +248,8 @@ public interface CommuneCentreAssignationRepository extends JpaRepository<Commun
|
||||
q.code,
|
||||
parc.q,
|
||||
parc.i,
|
||||
parc.p
|
||||
parc.p,
|
||||
cca.adresseContact
|
||||
)
|
||||
FROM CommuneCentreAssignation cca
|
||||
JOIN cca.structure s
|
||||
@@ -274,8 +268,6 @@ public interface CommuneCentreAssignationRepository extends JpaRepository<Commun
|
||||
@Query("""
|
||||
SELECT new io.gmss.fiscad.paylaods.request.crudweb.CommuneCentreAssignationPaylaodWeb(
|
||||
cca.id,
|
||||
cca.nc,
|
||||
cca.ifu,
|
||||
c.id,
|
||||
c.code,
|
||||
c.nom,
|
||||
@@ -293,7 +285,8 @@ public interface CommuneCentreAssignationRepository extends JpaRepository<Commun
|
||||
q.code,
|
||||
parc.q,
|
||||
parc.i,
|
||||
parc.p
|
||||
parc.p,
|
||||
cca.adresseContact
|
||||
)
|
||||
FROM CommuneCentreAssignation cca
|
||||
JOIN cca.structure s
|
||||
|
||||
@@ -1010,6 +1010,8 @@ public class EntityFromPayLoadService {
|
||||
communeCentreAssignation.setPersonne(personne);
|
||||
}
|
||||
|
||||
communeCentreAssignation.setAdresseContact(communeCentreAssignationPaylaodWeb.getAdresseContact());
|
||||
|
||||
// if (communeCentreAssignationPaylaodWeb.getCommuneId() != null) {
|
||||
// Commune commune = new Commune();
|
||||
// commune.setId(communeCentreAssignationPaylaodWeb.getCommuneId());
|
||||
|
||||
Reference in New Issue
Block a user