reajustement secteur decoupage perimetre
All checks were successful
CI - Build & Test (develop) / build-and-test (pull_request) Successful in 42s
All checks were successful
CI - Build & Test (develop) / build-and-test (pull_request) Successful in 42s
This commit is contained in:
@@ -101,7 +101,7 @@ public class EnqueteController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@PutMapping("/validation")
|
@PutMapping("/validation")
|
||||||
@PreAuthorize("hasAuthority('UPDATE_ENQUETE')")
|
@PreAuthorize("hasAuthority('UPDATE_ENQUETE') And hasAuthority('VALIDATE_ENQUETE') ")
|
||||||
public ResponseEntity<?> validerEnquete(@RequestBody EnqueteTraitementPayLoad enqueteTraitementPayLoad) {
|
public ResponseEntity<?> validerEnquete(@RequestBody EnqueteTraitementPayLoad enqueteTraitementPayLoad) {
|
||||||
try {
|
try {
|
||||||
return new ResponseEntity<>(
|
return new ResponseEntity<>(
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ public enum StatusAvis {
|
|||||||
|
|
||||||
REJETE,
|
REJETE,
|
||||||
TFU_FNB_GENERE,
|
TFU_FNB_GENERE,
|
||||||
GENERE
|
GENERE,
|
||||||
|
APPROVAL
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
package io.gmss.fiscad.enums;
|
package io.gmss.fiscad.enums;
|
||||||
|
|
||||||
public enum UserRole {
|
public enum UserRole {
|
||||||
|
VALIDE_ENQUETE,
|
||||||
|
APPROVAL_AVIS,
|
||||||
CREATE_ARRONDISSEMENT,
|
CREATE_ARRONDISSEMENT,
|
||||||
READ_ARRONDISSEMENT,
|
READ_ARRONDISSEMENT,
|
||||||
UPDATE_ARRONDISSEMENT,
|
UPDATE_ARRONDISSEMENT,
|
||||||
@@ -189,10 +191,10 @@ public enum UserRole {
|
|||||||
READ_UNITELOGEMENT,
|
READ_UNITELOGEMENT,
|
||||||
UPDATE_UNITELOGEMENT,
|
UPDATE_UNITELOGEMENT,
|
||||||
DELETE_UNITELOGEMENT,
|
DELETE_UNITELOGEMENT,
|
||||||
CREATE_BAREMRFUBATI,
|
CREATE_BAREMRFU,
|
||||||
READ_BAREMRFUBATI,
|
READ_BAREMRFU,
|
||||||
UPDATE_BAREMRFUBATI,
|
UPDATE_BAREMRFU,
|
||||||
DELETE_BAREMRFUBATI,
|
DELETE_BAREMRFU,
|
||||||
CREATE_BAREMRFUNONBATI,
|
CREATE_BAREMRFUNONBATI,
|
||||||
READ_BAREMRFUNONBATI,
|
READ_BAREMRFUNONBATI,
|
||||||
UPDATE_BAREMRFUNONBATI,
|
UPDATE_BAREMRFUNONBATI,
|
||||||
|
|||||||
@@ -48,7 +48,13 @@ public class BatimentServiceImpl implements BatimentService {
|
|||||||
}
|
}
|
||||||
Batiment batiment= entityFromPayLoadService.getBatimentFromPayLoadWeb(batimentPaylaodWeb);
|
Batiment batiment= entityFromPayLoadService.getBatimentFromPayLoadWeb(batimentPaylaodWeb);
|
||||||
batiment= batimentRepository.save(batiment);
|
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);
|
return batimentRepository.findBatimentAvecOccupantCourantToDto(batiment.getId()).orElse(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -112,8 +112,11 @@ public class DonneesImpositionTfuServiceImpl implements DonneesImpositionTfuServ
|
|||||||
@Override
|
@Override
|
||||||
@Transactional
|
@Transactional
|
||||||
public ImpositionsTfuPaylaodWeb genererDonneesFiscalesParcelleNonBatieUneParcelle(ImpositionsTfuPaylaodWeb impositionsTfuPaylaodWeb, Long userId,Long parcelleId) {
|
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);
|
Integer nb= donneesImpositionTfuRepository.genererDonneesTfuNonBatie(impositionsTfuPaylaodWeb.getId(),userId,parcelleId);
|
||||||
|
// System.out.println(nb);
|
||||||
ImpositionsTfu impositionsTfu = entityFromPayLoadService.getImpositionsTfuFromPayLoadWeb(impositionsTfuPaylaodWeb);
|
ImpositionsTfu impositionsTfu = entityFromPayLoadService.getImpositionsTfuFromPayLoadWeb(impositionsTfuPaylaodWeb);
|
||||||
impositionsTfu.setStatusAvis(StatusAvis.TFU_FNB_GENERE);
|
impositionsTfu.setStatusAvis(StatusAvis.TFU_FNB_GENERE);
|
||||||
|
|
||||||
@@ -175,6 +178,7 @@ public class DonneesImpositionTfuServiceImpl implements DonneesImpositionTfuServ
|
|||||||
|
|
||||||
|
|
||||||
ImpositionsTfu impositionsTfu = entityFromPayLoadService.getImpositionsTfuFromPayLoadWeb(impositionsTfuPaylaodWeb);
|
ImpositionsTfu impositionsTfu = entityFromPayLoadService.getImpositionsTfuFromPayLoadWeb(impositionsTfuPaylaodWeb);
|
||||||
|
|
||||||
impositionsTfu.setStatusAvis(StatusAvis.GENERE);
|
impositionsTfu.setStatusAvis(StatusAvis.GENERE);
|
||||||
|
|
||||||
impositionsTfu.setNombreAvis(nbb+nbulo+ (impositionsTfu.getNombreAvisFnb()==null?0:impositionsTfu.getNombreAvisFnb()));
|
impositionsTfu.setNombreAvis(nbb+nbulo+ (impositionsTfu.getNombreAvisFnb()==null?0:impositionsTfu.getNombreAvisFnb()));
|
||||||
|
|||||||
@@ -191,7 +191,8 @@ FROM impositions_tfu imp
|
|||||||
INNER JOIN eavis on eavis.r_avis = concat(c.code,'-',dimp.ifu,'-',exo.annee)
|
INNER JOIN eavis on eavis.r_avis = concat(c.code,'-',dimp.ifu,'-',exo.annee)
|
||||||
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';
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
---------------------------------------------------
|
---------------------------------------------------
|
||||||
|
|||||||
@@ -162,11 +162,11 @@ BEGIN
|
|||||||
p.latitude,
|
p.latitude,
|
||||||
TRUE,
|
TRUE,
|
||||||
-- exonere parcelle
|
-- exonere parcelle
|
||||||
(v_today BETWEEN ep.date_debut_exemption
|
coalesce((v_today BETWEEN ep.date_debut_exemption
|
||||||
AND COALESCE(ep.date_fin_exemption, v_today)),
|
AND COALESCE(ep.date_fin_exemption, v_today)),false),
|
||||||
-- exonere batiment
|
-- exonere batiment
|
||||||
(v_today BETWEEN eb.date_debut_excemption
|
coalesce((v_today BETWEEN eb.date_debut_excemption
|
||||||
AND COALESCE(eb.date_fin_excemption, v_today)),
|
AND COALESCE(eb.date_fin_excemption, v_today)),false),
|
||||||
cb.standing,
|
cb.standing,
|
||||||
cb.nom,
|
cb.nom,
|
||||||
eb.nombre_piscine,
|
eb.nombre_piscine,
|
||||||
|
|||||||
@@ -163,11 +163,11 @@ BEGIN
|
|||||||
p.latitude,
|
p.latitude,
|
||||||
TRUE,
|
TRUE,
|
||||||
-- exonere parcelle
|
-- exonere parcelle
|
||||||
(v_today BETWEEN ep.date_debut_exemption
|
coalesce((v_today BETWEEN ep.date_debut_exemption
|
||||||
AND COALESCE(ep.date_fin_exemption, v_today)),
|
AND COALESCE(ep.date_fin_exemption, v_today)),false),
|
||||||
-- exonere batiment
|
-- exonere batiment
|
||||||
(v_today BETWEEN eb.date_debut_excemption
|
coalesce((v_today BETWEEN eb.date_debut_excemption
|
||||||
AND COALESCE(eb.date_fin_excemption, v_today)),
|
AND COALESCE(eb.date_fin_excemption, v_today)),false),
|
||||||
cb.standing,
|
cb.standing,
|
||||||
cb.nom,
|
cb.nom,
|
||||||
eb.nombre_piscine,
|
eb.nombre_piscine,
|
||||||
@@ -470,9 +470,12 @@ BEGIN
|
|||||||
AND st.id = v_structure_id
|
AND st.id = v_structure_id
|
||||||
AND p.id = p_parcelle_id
|
AND p.id = p_parcelle_id
|
||||||
AND NOT EXISTS(select 1 from donnees_imposition_tfu dimptfu
|
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.annee=v_annee
|
||||||
and dimptfu.nature_impot='FB');
|
--and dimptfu.nature_impot='FB'
|
||||||
|
);
|
||||||
|
|
||||||
-- ON CONFLICT DO NOTHING;
|
-- ON CONFLICT DO NOTHING;
|
||||||
|
|
||||||
|
|||||||
@@ -453,9 +453,11 @@ BEGIN
|
|||||||
AND p.id = p_parcelle_id
|
AND p.id = p_parcelle_id
|
||||||
AND NOT exists(select 1 from donnees_imposition_tfu dimptfu
|
AND NOT exists(select 1 from donnees_imposition_tfu dimptfu
|
||||||
where dimptfu.annee=v_annee
|
where dimptfu.annee=v_annee
|
||||||
and dimptfu.batiment_id=b.id
|
and dimptfu.parcelle_id=p_parcelle_id
|
||||||
and dimptfu.unite_logement_id=ul.id
|
--and dimptfu.batiment_id=b.id
|
||||||
and dimptfu.nature_impot='FB')
|
--and dimptfu.unite_logement_id=ul.id
|
||||||
|
--and dimptfu.nature_impot='FB'
|
||||||
|
)
|
||||||
ON CONFLICT DO NOTHING;
|
ON CONFLICT DO NOTHING;
|
||||||
|
|
||||||
GET DIAGNOSTICS v_rows_inserted = ROW_COUNT;
|
GET DIAGNOSTICS v_rows_inserted = ROW_COUNT;
|
||||||
|
|||||||
@@ -99,10 +99,10 @@ BEGIN
|
|||||||
p.longitude,
|
p.longitude,
|
||||||
p.latitude,
|
p.latitude,
|
||||||
false,
|
false,
|
||||||
(
|
coalesce((
|
||||||
CURRENT_DATE >= ep.date_debut_exemption
|
CURRENT_DATE >= ep.date_debut_exemption
|
||||||
AND CURRENT_DATE <= COALESCE(ep.date_fin_exemption, CURRENT_DATE)
|
AND CURRENT_DATE <= COALESCE(ep.date_fin_exemption, CURRENT_DATE)
|
||||||
),
|
),false),
|
||||||
ep.date_enquete,
|
ep.date_enquete,
|
||||||
st.id,
|
st.id,
|
||||||
ep.zone_rfu_id,
|
ep.zone_rfu_id,
|
||||||
@@ -189,7 +189,7 @@ BEGIN
|
|||||||
epa.id_impot_nature,
|
epa.id_impot_nature,
|
||||||
epa.id_exercice
|
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
|
)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
|
AND st.id = v_structure_id
|
||||||
|
|
||||||
ON CONFLICT DO NOTHING;
|
ON CONFLICT DO NOTHING;
|
||||||
|
|||||||
@@ -100,10 +100,10 @@ BEGIN
|
|||||||
p.longitude,
|
p.longitude,
|
||||||
p.latitude,
|
p.latitude,
|
||||||
false,
|
false,
|
||||||
(
|
coalesce((
|
||||||
CURRENT_DATE >= ep.date_debut_exemption
|
CURRENT_DATE >= ep.date_debut_exemption
|
||||||
AND CURRENT_DATE <= COALESCE(ep.date_fin_exemption, CURRENT_DATE)
|
AND CURRENT_DATE <= COALESCE(ep.date_fin_exemption, CURRENT_DATE)
|
||||||
),
|
),false),
|
||||||
ep.date_enquete,
|
ep.date_enquete,
|
||||||
st.id,
|
st.id,
|
||||||
ep.zone_rfu_id,
|
ep.zone_rfu_id,
|
||||||
@@ -190,11 +190,12 @@ BEGIN
|
|||||||
epa.id_impot_nature,
|
epa.id_impot_nature,
|
||||||
epa.id_exercice
|
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
|
)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 st.id = v_structure_id
|
||||||
AND p.id=p_parcelle_id
|
AND p.id=p_parcelle_id
|
||||||
AND NOT EXISTS( select 1 from donnees_imposition_tfu dimptfu
|
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.parcelle_id=p_parcelle_id
|
||||||
and dimptfu.annee=v_annee)
|
and dimptfu.annee=v_annee)
|
||||||
|
|
||||||
|
|||||||
@@ -71,3 +71,6 @@ BEGIN
|
|||||||
);
|
);
|
||||||
END;
|
END;
|
||||||
$$;
|
$$;
|
||||||
|
|
||||||
|
|
||||||
|
call integrer_eavis_detail();
|
||||||
|
|||||||
@@ -1032,6 +1032,7 @@ public class EntityFromPayLoadService {
|
|||||||
parcelle.setAutreNumeroTitreFoncier(parcellePayLoadWeb.getNumTitreFoncier());
|
parcelle.setAutreNumeroTitreFoncier(parcellePayLoadWeb.getNumTitreFoncier());
|
||||||
parcelle.setObservation(parcellePayLoadWeb.getObservation());
|
parcelle.setObservation(parcellePayLoadWeb.getObservation());
|
||||||
parcelle.setSuperficie(parcellePayLoadWeb.getSuperficie());
|
parcelle.setSuperficie(parcellePayLoadWeb.getSuperficie());
|
||||||
|
parcelle.setBatie(false);
|
||||||
return parcelle;
|
return parcelle;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -465,7 +465,7 @@ public class MailService {
|
|||||||
null,
|
null,
|
||||||
null,
|
null,
|
||||||
null,
|
null,
|
||||||
"[SIGIBE] Validation de votre demande d'immatriculation fiscale",
|
"[SIGIBE] Changement de votre mot de passe",
|
||||||
applicantName,
|
applicantName,
|
||||||
eServicesNumber,
|
eServicesNumber,
|
||||||
passwordCreationLink,
|
passwordCreationLink,
|
||||||
|
|||||||
@@ -2,16 +2,16 @@ server.port=8282
|
|||||||
io.gmss.fiscad.profile=test
|
io.gmss.fiscad.profile=test
|
||||||
|
|
||||||
# LOCAL ENV TEST
|
# LOCAL ENV TEST
|
||||||
spring.datasource.url=jdbc:postgresql://localhost:5432/fiscad_dgi
|
#spring.datasource.url=jdbc:postgresql://localhost:5432/fiscad_dgi
|
||||||
spring.datasource.username=infocad_user
|
#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.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.username=fiscad_admin
|
||||||
app.default-user.password=1234567890
|
app.default-user.password=1234567890
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user