reajustement secteur decoupage perimetre
All checks were successful
CI - Build & Test (develop) / build-and-test (pull_request) Successful in 42s

This commit is contained in:
2026-07-27 14:16:35 +01:00
parent 0be6c9a095
commit 4b5e83f244
15 changed files with 62 additions and 38 deletions

View File

@@ -101,7 +101,7 @@ public class EnqueteController {
}
@PutMapping("/validation")
@PreAuthorize("hasAuthority('UPDATE_ENQUETE')")
@PreAuthorize("hasAuthority('UPDATE_ENQUETE') And hasAuthority('VALIDATE_ENQUETE') ")
public ResponseEntity<?> validerEnquete(@RequestBody EnqueteTraitementPayLoad enqueteTraitementPayLoad) {
try {
return new ResponseEntity<>(

View File

@@ -8,6 +8,7 @@ public enum StatusAvis {
REJETE,
TFU_FNB_GENERE,
GENERE
GENERE,
APPROVAL
}

View File

@@ -1,6 +1,8 @@
package io.gmss.fiscad.enums;
public enum UserRole {
VALIDE_ENQUETE,
APPROVAL_AVIS,
CREATE_ARRONDISSEMENT,
READ_ARRONDISSEMENT,
UPDATE_ARRONDISSEMENT,
@@ -189,10 +191,10 @@ public enum UserRole {
READ_UNITELOGEMENT,
UPDATE_UNITELOGEMENT,
DELETE_UNITELOGEMENT,
CREATE_BAREMRFUBATI,
READ_BAREMRFUBATI,
UPDATE_BAREMRFUBATI,
DELETE_BAREMRFUBATI,
CREATE_BAREMRFU,
READ_BAREMRFU,
UPDATE_BAREMRFU,
DELETE_BAREMRFU,
CREATE_BAREMRFUNONBATI,
READ_BAREMRFUNONBATI,
UPDATE_BAREMRFUNONBATI,

View File

@@ -48,7 +48,13 @@ public class BatimentServiceImpl implements BatimentService {
}
Batiment batiment= entityFromPayLoadService.getBatimentFromPayLoadWeb(batimentPaylaodWeb);
batiment= batimentRepository.save(batiment);
System.out.println(batiment.getId());
Optional<Parcelle> optionalParcelle=parcelleRepository.findById(batimentPaylaodWeb.getParcelleId());
if(optionalParcelle.isPresent()){
System.out.println(optionalParcelle.get().getP());
optionalParcelle.get().setBatie(true);
parcelleRepository.save(optionalParcelle.get());
}
return batimentRepository.findBatimentAvecOccupantCourantToDto(batiment.getId()).orElse(null);
}

View File

@@ -112,8 +112,11 @@ public class DonneesImpositionTfuServiceImpl implements DonneesImpositionTfuServ
@Override
@Transactional
public ImpositionsTfuPaylaodWeb genererDonneesFiscalesParcelleNonBatieUneParcelle(ImpositionsTfuPaylaodWeb impositionsTfuPaylaodWeb, Long userId,Long parcelleId) {
// System.out.println("User : " +userId);
// System.out.println("Parcelle : " +parcelleId);
// System.out.println("Imposition : " +impositionsTfuPaylaodWeb.getId());
Integer nb= donneesImpositionTfuRepository.genererDonneesTfuNonBatie(impositionsTfuPaylaodWeb.getId(),userId,parcelleId);
// System.out.println(nb);
ImpositionsTfu impositionsTfu = entityFromPayLoadService.getImpositionsTfuFromPayLoadWeb(impositionsTfuPaylaodWeb);
impositionsTfu.setStatusAvis(StatusAvis.TFU_FNB_GENERE);
@@ -175,6 +178,7 @@ public class DonneesImpositionTfuServiceImpl implements DonneesImpositionTfuServ
ImpositionsTfu impositionsTfu = entityFromPayLoadService.getImpositionsTfuFromPayLoadWeb(impositionsTfuPaylaodWeb);
impositionsTfu.setStatusAvis(StatusAvis.GENERE);
impositionsTfu.setNombreAvis(nbb+nbulo+ (impositionsTfu.getNombreAvisFnb()==null?0:impositionsTfu.getNombreAvisFnb()));

View File

@@ -191,7 +191,8 @@ FROM impositions_tfu imp
INNER JOIN eavis on eavis.r_avis = concat(c.code,'-',dimp.ifu,'-',exo.annee)
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 ;
-- and dimp.ifu='208558';
---------------------------------------------------

View File

@@ -162,11 +162,11 @@ BEGIN
p.latitude,
TRUE,
-- exonere parcelle
(v_today BETWEEN ep.date_debut_exemption
AND COALESCE(ep.date_fin_exemption, v_today)),
coalesce((v_today BETWEEN ep.date_debut_exemption
AND COALESCE(ep.date_fin_exemption, v_today)),false),
-- exonere batiment
(v_today BETWEEN eb.date_debut_excemption
AND COALESCE(eb.date_fin_excemption, v_today)),
coalesce((v_today BETWEEN eb.date_debut_excemption
AND COALESCE(eb.date_fin_excemption, v_today)),false),
cb.standing,
cb.nom,
eb.nombre_piscine,

View File

@@ -163,11 +163,11 @@ BEGIN
p.latitude,
TRUE,
-- exonere parcelle
(v_today BETWEEN ep.date_debut_exemption
AND COALESCE(ep.date_fin_exemption, v_today)),
coalesce((v_today BETWEEN ep.date_debut_exemption
AND COALESCE(ep.date_fin_exemption, v_today)),false),
-- exonere batiment
(v_today BETWEEN eb.date_debut_excemption
AND COALESCE(eb.date_fin_excemption, v_today)),
coalesce((v_today BETWEEN eb.date_debut_excemption
AND COALESCE(eb.date_fin_excemption, v_today)),false),
cb.standing,
cb.nom,
eb.nombre_piscine,
@@ -470,9 +470,12 @@ BEGIN
AND st.id = v_structure_id
AND p.id = p_parcelle_id
AND NOT EXISTS(select 1 from donnees_imposition_tfu dimptfu
where dimptfu.batiment_id=b.id
where
-- dimptfu.batiment_id=b.id
dimptfu.parcelle_id=p_parcelle_id
and dimptfu.annee=v_annee
and dimptfu.nature_impot='FB');
--and dimptfu.nature_impot='FB'
);
-- ON CONFLICT DO NOTHING;

View File

@@ -453,9 +453,11 @@ BEGIN
AND p.id = p_parcelle_id
AND NOT exists(select 1 from donnees_imposition_tfu dimptfu
where dimptfu.annee=v_annee
and dimptfu.batiment_id=b.id
and dimptfu.unite_logement_id=ul.id
and dimptfu.nature_impot='FB')
and dimptfu.parcelle_id=p_parcelle_id
--and dimptfu.batiment_id=b.id
--and dimptfu.unite_logement_id=ul.id
--and dimptfu.nature_impot='FB'
)
ON CONFLICT DO NOTHING;
GET DIAGNOSTICS v_rows_inserted = ROW_COUNT;

View File

@@ -99,10 +99,10 @@ BEGIN
p.longitude,
p.latitude,
false,
(
coalesce((
CURRENT_DATE >= ep.date_debut_exemption
AND CURRENT_DATE <= COALESCE(ep.date_fin_exemption, CURRENT_DATE)
),
),false),
ep.date_enquete,
st.id,
ep.zone_rfu_id,
@@ -189,7 +189,7 @@ BEGIN
epa.id_impot_nature,
epa.id_exercice
)tac on tac.ifu=pers.ifu and tac.r_quartier=q.code and tac.qip_ilot=p.i and tac.qip_parcelle=p.p
WHERE p.batie = false
WHERE (p.batie = false or p.batie is null)
AND st.id = v_structure_id
ON CONFLICT DO NOTHING;

View File

@@ -100,10 +100,10 @@ BEGIN
p.longitude,
p.latitude,
false,
(
coalesce((
CURRENT_DATE >= ep.date_debut_exemption
AND CURRENT_DATE <= COALESCE(ep.date_fin_exemption, CURRENT_DATE)
),
),false),
ep.date_enquete,
st.id,
ep.zone_rfu_id,
@@ -190,11 +190,12 @@ BEGIN
epa.id_impot_nature,
epa.id_exercice
)tac on tac.ifu=pers.ifu and tac.r_quartier=q.code and tac.qip_ilot=p.i and tac.qip_parcelle=p.p
WHERE p.batie = false
WHERE (p.batie = false or batie is null)
AND st.id = v_structure_id
AND p.id=p_parcelle_id
AND NOT EXISTS( select 1 from donnees_imposition_tfu dimptfu
where dimptfu.nature_impot='FNB'
where true
--dimptfu.nature_impot='FNB'
and dimptfu.parcelle_id=p_parcelle_id
and dimptfu.annee=v_annee)

View File

@@ -71,3 +71,6 @@ BEGIN
);
END;
$$;
call integrer_eavis_detail();

View File

@@ -1032,6 +1032,7 @@ public class EntityFromPayLoadService {
parcelle.setAutreNumeroTitreFoncier(parcellePayLoadWeb.getNumTitreFoncier());
parcelle.setObservation(parcellePayLoadWeb.getObservation());
parcelle.setSuperficie(parcellePayLoadWeb.getSuperficie());
parcelle.setBatie(false);
return parcelle;
}

View File

@@ -465,7 +465,7 @@ public class MailService {
null,
null,
null,
"[SIGIBE] Validation de votre demande d'immatriculation fiscale",
"[SIGIBE] Changement de votre mot de passe",
applicantName,
eServicesNumber,
passwordCreationLink,

View File

@@ -2,16 +2,16 @@ server.port=8282
io.gmss.fiscad.profile=test
# LOCAL ENV TEST
spring.datasource.url=jdbc:postgresql://localhost:5432/fiscad_dgi
spring.datasource.username=infocad_user
#spring.datasource.url=jdbc:postgresql://localhost:5432/fiscad_dgi
#spring.datasource.username=infocad_user
@spring.datasource.password=W5fwD({9*q53
spring.datasource.url=jdbc:postgresql://193.181.208.4:5432/fiscad_db
spring.datasource.username=fiscad_user
spring.datasource.password=W5fwD({9*q53
#spring.datasource.url=jdbc:postgresql://193.181.208.4:5432/fiscad_db
#spring.datasource.username=fiscad_user
#spring.datasource.password=W5fwD({9*q53
app.default-user.username=fiscad_admin
app.default-user.password=1234567890