Compare commits
2 Commits
43b060371a
...
features/c
| Author | SHA1 | Date | |
|---|---|---|---|
| 81bd7d9034 | |||
| cec02e24ae |
@@ -29,6 +29,8 @@ public class Quartier extends BaseEntity implements Serializable {
|
|||||||
@ManyToOne
|
@ManyToOne
|
||||||
private Arrondissement arrondissement;
|
private Arrondissement arrondissement;
|
||||||
|
|
||||||
|
private String longitude;
|
||||||
|
private String latitude;
|
||||||
// @JsonIgnore
|
// @JsonIgnore
|
||||||
// @OneToOne(mappedBy = "quartier")
|
// @OneToOne(mappedBy = "quartier")
|
||||||
// private Bloc bloc;
|
// private Bloc bloc;
|
||||||
|
|||||||
@@ -119,7 +119,7 @@ public class ParcelleGeom extends BaseEntity implements Serializable {
|
|||||||
private Quartier quartier ;
|
private Quartier quartier ;
|
||||||
|
|
||||||
@ColumnDefault("0")
|
@ColumnDefault("0")
|
||||||
private int geomSrid;
|
private Integer geomSrid;
|
||||||
@JsonSerialize(using = GeometrySerializer.class)
|
@JsonSerialize(using = GeometrySerializer.class)
|
||||||
@JsonDeserialize(contentUsing = GeometryDeserializer.class)
|
@JsonDeserialize(contentUsing = GeometryDeserializer.class)
|
||||||
@Column(name = "geometry",columnDefinition = "geometry(Polygon,32631)")
|
@Column(name = "geometry",columnDefinition = "geometry(Polygon,32631)")
|
||||||
|
|||||||
@@ -99,7 +99,6 @@ public class DonneesImpositionTfuServiceImpl implements DonneesImpositionTfuServ
|
|||||||
public ImpositionsTfuPaylaodWeb genererDonneesFiscalesParcelleNonBatie(ImpositionsTfuPaylaodWeb impositionsTfuPaylaodWeb, Long userId) {
|
public ImpositionsTfuPaylaodWeb genererDonneesFiscalesParcelleNonBatie(ImpositionsTfuPaylaodWeb impositionsTfuPaylaodWeb, Long userId) {
|
||||||
Integer nb= donneesImpositionTfuRepository.genererDonneesTfuNonBatie(impositionsTfuPaylaodWeb.getId(),userId);
|
Integer nb= donneesImpositionTfuRepository.genererDonneesTfuNonBatie(impositionsTfuPaylaodWeb.getId(),userId);
|
||||||
|
|
||||||
|
|
||||||
ImpositionsTfu impositionsTfu = entityFromPayLoadService.getImpositionsTfuFromPayLoadWeb(impositionsTfuPaylaodWeb);
|
ImpositionsTfu impositionsTfu = entityFromPayLoadService.getImpositionsTfuFromPayLoadWeb(impositionsTfuPaylaodWeb);
|
||||||
impositionsTfu.setStatusAvis(StatusAvis.TFU_FNB_GENERE);
|
impositionsTfu.setStatusAvis(StatusAvis.TFU_FNB_GENERE);
|
||||||
|
|
||||||
|
|||||||
@@ -13,8 +13,6 @@ import java.util.List;
|
|||||||
import java.util.Optional;
|
import java.util.Optional;
|
||||||
|
|
||||||
public interface DonneesImpositionTfuService {
|
public interface DonneesImpositionTfuService {
|
||||||
|
|
||||||
|
|
||||||
DonneesImpositionTfu createDonneesImpositionTfu(DonneesImpositionTfu donneesImpositionTfu) throws BadRequestException;
|
DonneesImpositionTfu createDonneesImpositionTfu(DonneesImpositionTfu donneesImpositionTfu) throws BadRequestException;
|
||||||
|
|
||||||
DonneesImpositionTfu updateDonneesImpositionTfu(Long id, DonneesImpositionTfu donneesImpositionTfu) throws NotFoundException;
|
DonneesImpositionTfu updateDonneesImpositionTfu(Long id, DonneesImpositionTfu donneesImpositionTfu) throws NotFoundException;
|
||||||
|
|||||||
@@ -90,7 +90,7 @@ public class ParcelleGeomPaylaodWeb {
|
|||||||
private String quartierCode ;
|
private String quartierCode ;
|
||||||
private String quartierNom ;
|
private String quartierNom ;
|
||||||
|
|
||||||
private int geomSrid;
|
private Integer geomSrid;
|
||||||
@JsonSerialize(using = GeometrySerializer.class)
|
@JsonSerialize(using = GeometrySerializer.class)
|
||||||
@JsonDeserialize(contentUsing = GeometryDeserializer.class)
|
@JsonDeserialize(contentUsing = GeometryDeserializer.class)
|
||||||
//@Column(name = "geometry",columnDefinition = "geometry(Polygon,32631)")
|
//@Column(name = "geometry",columnDefinition = "geometry(Polygon,32631)")
|
||||||
@@ -100,7 +100,7 @@ public class ParcelleGeomPaylaodWeb {
|
|||||||
|
|
||||||
private Long parcelleId;
|
private Long parcelleId;
|
||||||
|
|
||||||
public ParcelleGeomPaylaodWeb(Long id, String nup, String nupProvisoire, String longitude, String latitude, String numeroRue, String numeroEntreePorte, String codeInstad, String numeroEtatLieux, String numeroTitreFoncier, LocalDate dateTitreFoncier, Boolean batie, String npi, String ifu, String nom, String prenom, String raisonSociale, String nomEtPrenoms, String telephone, String adresse, String nomRepresentant, String prenomRepresentant, String raisonSocialeRepresentant, String nomEtPrenomsRepresentant, String telephoneRepresentant, String adresseRepresentant, String q, String zone, String ilot, String p, String qLotissement, String ilotLotissement, String pLotissement, String pointsPolygone, Integer superficie, String dateCollecte, SourceDonnee sourceDonnees, String observations, StatutParcelle statutParcelle, Long departementId, String departementCode, String departementNom, Long communeId, String communeCode, String communeNom, Long arrondissementId, String arrondissementCode, String arrondissementNom, Long quartierId, String quartierCode, String quartierNom, int geomSrid, Polygon geometry, String geometryString, Long parcelleId) {
|
public ParcelleGeomPaylaodWeb(Long id, String nup, String nupProvisoire, String longitude, String latitude, String numeroRue, String numeroEntreePorte, String codeInstad, String numeroEtatLieux, String numeroTitreFoncier, LocalDate dateTitreFoncier, Boolean batie, String npi, String ifu, String nom, String prenom, String raisonSociale, String nomEtPrenoms, String telephone, String adresse, String nomRepresentant, String prenomRepresentant, String raisonSocialeRepresentant, String nomEtPrenomsRepresentant, String telephoneRepresentant, String adresseRepresentant, String q, String zone, String ilot, String p, String qLotissement, String ilotLotissement, String pLotissement, String pointsPolygone, Integer superficie, String dateCollecte, SourceDonnee sourceDonnees, String observations, StatutParcelle statutParcelle, Long departementId, String departementCode, String departementNom, Long communeId, String communeCode, String communeNom, Long arrondissementId, String arrondissementCode, String arrondissementNom, Long quartierId, String quartierCode, String quartierNom, Integer geomSrid, Polygon geometry, String geometryString, Long parcelleId) {
|
||||||
this.id = id;
|
this.id = id;
|
||||||
this.nup = nup;
|
this.nup = nup;
|
||||||
this.nupProvisoire = nupProvisoire;
|
this.nupProvisoire = nupProvisoire;
|
||||||
|
|||||||
@@ -128,9 +128,9 @@ public interface ParcelleGeomRepository extends JpaRepository<ParcelleGeom, Long
|
|||||||
pg.batie,
|
pg.batie,
|
||||||
pg.npi,
|
pg.npi,
|
||||||
pg.ifu,
|
pg.ifu,
|
||||||
pg.nom,
|
pers.nom,
|
||||||
pg.prenom,
|
pers.prenom,
|
||||||
pg.raisonSociale,
|
pers.raisonSociale,
|
||||||
pg.nomEtPrenoms,
|
pg.nomEtPrenoms,
|
||||||
pg.telephone,
|
pg.telephone,
|
||||||
pg.adresse,
|
pg.adresse,
|
||||||
@@ -168,9 +168,18 @@ public interface ParcelleGeomRepository extends JpaRepository<ParcelleGeom, Long
|
|||||||
pg.geomSrid,
|
pg.geomSrid,
|
||||||
pg.geometry,
|
pg.geometry,
|
||||||
pg.geometryString,
|
pg.geometryString,
|
||||||
pg.parcelle.id
|
parc.id
|
||||||
)
|
)
|
||||||
FROM ParcelleGeom pg
|
FROM ParcelleGeom pg
|
||||||
|
LEFT JOIN pg.parcelle parc
|
||||||
|
LEFT JOIN Enquete e
|
||||||
|
ON e.parcelle = parc
|
||||||
|
AND e.dateEnquete = (
|
||||||
|
SELECT MAX(e2.dateEnquete)
|
||||||
|
FROM Enquete e2
|
||||||
|
WHERE e2.parcelle = parc
|
||||||
|
)
|
||||||
|
LEFT JOIN e.personne pers
|
||||||
LEFT JOIN pg.departement d
|
LEFT JOIN pg.departement d
|
||||||
LEFT JOIN pg.commune c
|
LEFT JOIN pg.commune c
|
||||||
LEFT JOIN pg.arrondissement a
|
LEFT JOIN pg.arrondissement a
|
||||||
@@ -196,9 +205,9 @@ public interface ParcelleGeomRepository extends JpaRepository<ParcelleGeom, Long
|
|||||||
pg.batie,
|
pg.batie,
|
||||||
pg.npi,
|
pg.npi,
|
||||||
pg.ifu,
|
pg.ifu,
|
||||||
pg.nom,
|
pers.nom,
|
||||||
pg.prenom,
|
pers.prenom,
|
||||||
pg.raisonSociale,
|
pers.raisonSociale,
|
||||||
pg.nomEtPrenoms,
|
pg.nomEtPrenoms,
|
||||||
pg.telephone,
|
pg.telephone,
|
||||||
pg.adresse,
|
pg.adresse,
|
||||||
@@ -236,9 +245,18 @@ public interface ParcelleGeomRepository extends JpaRepository<ParcelleGeom, Long
|
|||||||
pg.geomSrid,
|
pg.geomSrid,
|
||||||
pg.geometry,
|
pg.geometry,
|
||||||
pg.geometryString,
|
pg.geometryString,
|
||||||
pg.parcelle.id
|
parc.id
|
||||||
)
|
)
|
||||||
FROM ParcelleGeom pg
|
FROM ParcelleGeom pg
|
||||||
|
LEFT JOIN pg.parcelle parc
|
||||||
|
LEFT JOIN Enquete e
|
||||||
|
ON e.parcelle = parc
|
||||||
|
AND e.dateEnquete = (
|
||||||
|
SELECT MAX(e2.dateEnquete)
|
||||||
|
FROM Enquete e2
|
||||||
|
WHERE e2.parcelle = parc
|
||||||
|
)
|
||||||
|
LEFT JOIN e.personne pers
|
||||||
LEFT JOIN pg.departement d
|
LEFT JOIN pg.departement d
|
||||||
LEFT JOIN pg.commune c
|
LEFT JOIN pg.commune c
|
||||||
LEFT JOIN pg.arrondissement a
|
LEFT JOIN pg.arrondissement a
|
||||||
|
|||||||
@@ -194,6 +194,7 @@ SELECT new io.gmss.fiscad.paylaods.request.crudweb.DonneesImpositionPaylaodWeb(
|
|||||||
LEFT join d.structure s
|
LEFT join d.structure s
|
||||||
LEFT join d.zoneRfu z
|
LEFT join d.zoneRfu z
|
||||||
WHERE itfu.id = :impositionTfuId
|
WHERE itfu.id = :impositionTfuId
|
||||||
|
order by d.nomProp,d.nomProp asc
|
||||||
""")
|
""")
|
||||||
List<DonneesImpositionPaylaodWeb> findAllByImpositionTfuId(
|
List<DonneesImpositionPaylaodWeb> findAllByImpositionTfuId(
|
||||||
Long impositionTfuId
|
Long impositionTfuId
|
||||||
@@ -268,6 +269,7 @@ SELECT new io.gmss.fiscad.paylaods.request.crudweb.DonneesImpositionPaylaodWeb(
|
|||||||
LEFT join d.structure s
|
LEFT join d.structure s
|
||||||
LEFT join d.zoneRfu z
|
LEFT join d.zoneRfu z
|
||||||
WHERE itfu.id = :impositionTfuId
|
WHERE itfu.id = :impositionTfuId
|
||||||
|
order by d.nomProp,d.nomProp asc
|
||||||
""")
|
""")
|
||||||
Page<DonneesImpositionPaylaodWeb> findAllByImpositionTfuIdPageable(
|
Page<DonneesImpositionPaylaodWeb> findAllByImpositionTfuIdPageable(
|
||||||
Long impositionTfuId,
|
Long impositionTfuId,
|
||||||
@@ -345,6 +347,7 @@ SELECT new io.gmss.fiscad.paylaods.request.crudweb.DonneesImpositionPaylaodWeb(
|
|||||||
WHERE itfu.id = :impositionTfuId
|
WHERE itfu.id = :impositionTfuId
|
||||||
and d.batie is true
|
and d.batie is true
|
||||||
and d.numUniteLogement is null
|
and d.numUniteLogement is null
|
||||||
|
order by d.nomProp,d.nomProp asc
|
||||||
""")
|
""")
|
||||||
Page<DonneesImpositionPaylaodWeb> findAllByImpositionTfuIdBatieBatimentPageable(
|
Page<DonneesImpositionPaylaodWeb> findAllByImpositionTfuIdBatieBatimentPageable(
|
||||||
Long impositionTfuId,
|
Long impositionTfuId,
|
||||||
@@ -421,6 +424,7 @@ SELECT new io.gmss.fiscad.paylaods.request.crudweb.DonneesImpositionPaylaodWeb(
|
|||||||
WHERE itfu.id = :impositionTfuId
|
WHERE itfu.id = :impositionTfuId
|
||||||
and d.batie is true
|
and d.batie is true
|
||||||
and d.numUniteLogement is not null
|
and d.numUniteLogement is not null
|
||||||
|
order by d.nomProp,d.nomProp asc
|
||||||
""")
|
""")
|
||||||
Page<DonneesImpositionPaylaodWeb> findAllByImpositionTfuIdBatieUniteLogPageable(
|
Page<DonneesImpositionPaylaodWeb> findAllByImpositionTfuIdBatieUniteLogPageable(
|
||||||
Long impositionTfuId,
|
Long impositionTfuId,
|
||||||
@@ -497,6 +501,7 @@ SELECT new io.gmss.fiscad.paylaods.request.crudweb.DonneesImpositionPaylaodWeb(
|
|||||||
LEFT join d.zoneRfu z
|
LEFT join d.zoneRfu z
|
||||||
WHERE itfu.id = :impositionTfuId
|
WHERE itfu.id = :impositionTfuId
|
||||||
and d.batie is false
|
and d.batie is false
|
||||||
|
order by d.nomProp,d.nomProp asc
|
||||||
""")
|
""")
|
||||||
Page<DonneesImpositionPaylaodWeb> findAllByImpositionTfuIdNonBatiePageable(
|
Page<DonneesImpositionPaylaodWeb> findAllByImpositionTfuIdNonBatiePageable(
|
||||||
Long impositionTfuId,
|
Long impositionTfuId,
|
||||||
|
|||||||
Reference in New Issue
Block a user