Compare commits
14 Commits
aur-dgi01-
...
d27b622db8
| Author | SHA1 | Date | |
|---|---|---|---|
| d27b622db8 | |||
| 98d0187df4 | |||
| c80b40082c | |||
| 1d4a1f61c9 | |||
| 4a88af6487 | |||
| bc31074a24 | |||
| 966b0af1c2 | |||
| ad2c3c70b2 | |||
| 58aa088ac3 | |||
| ac624a62fb | |||
| 033b430051 | |||
| 87615f210b | |||
| b8dbc7f625 | |||
| de2f149cf7 |
118
.gitea/workflows/cd-main.yml
Normal file
@@ -0,0 +1,118 @@
|
||||
name: CD - Deploy on main
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: self-hosted
|
||||
|
||||
steps:
|
||||
# 1) S'assurer que Node.js est installé
|
||||
- name: Ensure Node.js is installed
|
||||
shell: sh
|
||||
run: |
|
||||
if command -v node >/dev/null 2>&1; then
|
||||
echo "Node.js already installed: $(node -v)"
|
||||
else
|
||||
echo "Node.js not found, installing..."
|
||||
apk update && apk add --no-cache nodejs
|
||||
echo "Node.js installed: $(node -v)"
|
||||
fi
|
||||
|
||||
# 2) S'assurer que Java & Maven sont installés
|
||||
- name: Ensure Java & Maven are installed
|
||||
shell: sh
|
||||
run: |
|
||||
if command -v java >/dev/null 2>&1; then
|
||||
echo "Java already installed:"
|
||||
java -version
|
||||
else
|
||||
echo "Java not found, installing OpenJDK 17..."
|
||||
apk update && apk add --no-cache openjdk17-jdk
|
||||
echo "Java installed:"
|
||||
java -version
|
||||
fi
|
||||
|
||||
if command -v mvn >/dev/null 2>&1; then
|
||||
echo "Maven already installed:"
|
||||
mvn -version
|
||||
else
|
||||
echo "Maven not found, installing Maven..."
|
||||
apk update && apk add --no-cache maven
|
||||
echo "Maven installed:"
|
||||
mvn -version
|
||||
fi
|
||||
|
||||
# 3) Détecter JAVA_HOME dynamiquement et le propager
|
||||
- name: Detect JAVA_HOME dynamically
|
||||
shell: sh
|
||||
run: |
|
||||
JAVA_BIN=$(readlink -f "$(command -v java)")
|
||||
JAVA_HOME=$(dirname "$(dirname "$JAVA_BIN")")
|
||||
echo "Detected JAVA_HOME=$JAVA_HOME"
|
||||
echo "JAVA_HOME=$JAVA_HOME" >> "$GITHUB_ENV"
|
||||
|
||||
# 4) Checkout du dépôt
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
# 5) Afficher quelques infos utiles
|
||||
- name: Show current commit and tools
|
||||
shell: sh
|
||||
run: |
|
||||
echo "Current commit:"
|
||||
git rev-parse HEAD
|
||||
echo "JAVA_HOME is: $JAVA_HOME"
|
||||
java -version
|
||||
mvn -version
|
||||
|
||||
# 6) S'assurer que le client Docker + docker-compose sont installés
|
||||
- name: Ensure Docker CLI is installed
|
||||
shell: sh
|
||||
run: |
|
||||
if command -v docker >/dev/null 2>&1; then
|
||||
echo "Docker CLI already installed:"
|
||||
docker version || true
|
||||
else
|
||||
echo "Docker CLI not found, installing..."
|
||||
apk update && apk add --no-cache docker docker-compose
|
||||
echo "Docker CLI installed:"
|
||||
docker version || true
|
||||
fi
|
||||
|
||||
# 7) Générer le .env utilisé par docker-compose-prod.yml
|
||||
- name: Generate .env from Gitea secrets
|
||||
shell: sh
|
||||
run: |
|
||||
cat > .env <<EOF
|
||||
POSTGRES_DB_FISCAD=${{ secrets.POSTGRES_DB_FISCAD }}
|
||||
POSTGRES_USER_FISCAD=${{ secrets.POSTGRES_USER_FISCAD }}
|
||||
POSTGRES_PASSWORD_FISCAD=${{ secrets.POSTGRES_PASSWORD_FISCAD }}
|
||||
EOF
|
||||
echo "Generated .env:"
|
||||
cat .env
|
||||
|
||||
# 8) Build Maven pour générer le jar dans target/
|
||||
- name: Build backend with Maven
|
||||
shell: sh
|
||||
run: mvn -B clean package
|
||||
|
||||
# 9) Déploiement en prod avec docker-compose-prod.yml
|
||||
- name: Deploy using docker-compose (prod)
|
||||
shell: sh
|
||||
run: |
|
||||
# IMPORTANT : on fixe le nom du projet compose
|
||||
export COMPOSE_PROJECT_NAME=fiscad
|
||||
|
||||
# Puis on déploie avec un nom de projet fixe
|
||||
docker-compose -f docker-compose-prod.yml pull || true
|
||||
docker-compose -f docker-compose-prod.yml down --remove-orphans
|
||||
docker-compose -f docker-compose-prod.yml up -d --build
|
||||
|
||||
# 10) Nettoyage des images non utilisées
|
||||
- name: Cleanup unused images
|
||||
shell: sh
|
||||
run: docker image prune -f || true
|
||||
73
.gitea/workflows/ci-develop.yml
Normal file
@@ -0,0 +1,73 @@
|
||||
name: CI - Build & Test (develop)
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- develop
|
||||
|
||||
jobs:
|
||||
build-and-test:
|
||||
runs-on: self-hosted
|
||||
|
||||
steps:
|
||||
# 1) S'assurer que Node.js est installé (utile pour les actions JS comme actions/checkout)
|
||||
- name: Ensure Node.js is installed
|
||||
shell: sh
|
||||
run: |
|
||||
if command -v node >/dev/null 2>&1; then
|
||||
echo "Node.js already installed: $(node -v)"
|
||||
else
|
||||
echo "Node.js not found, installing..."
|
||||
apk update && apk add --no-cache nodejs
|
||||
echo "Node.js installed: $(node -v)"
|
||||
fi
|
||||
|
||||
# 2) S'assurer que Java + Maven sont installés
|
||||
- name: Ensure Java & Maven are installed
|
||||
shell: sh
|
||||
run: |
|
||||
if command -v java >/dev/null 2>&1; then
|
||||
echo "Java already installed:"
|
||||
java -version
|
||||
else
|
||||
echo "Java not found, installing OpenJDK 17..."
|
||||
apk update && apk add --no-cache openjdk17-jdk
|
||||
echo "Java installed:"
|
||||
java -version
|
||||
fi
|
||||
|
||||
if command -v mvn >/dev/null 2>&1; then
|
||||
echo "Maven already installed:"
|
||||
mvn -version
|
||||
else
|
||||
echo "Maven not found, installing Maven..."
|
||||
apk update && apk add --no-cache maven
|
||||
echo "Maven installed:"
|
||||
mvn -version
|
||||
fi
|
||||
|
||||
# 3) Détecter automatiquement JAVA_HOME et le propager au reste du job
|
||||
- name: Detect JAVA_HOME dynamically
|
||||
shell: sh
|
||||
run: |
|
||||
JAVA_BIN=$(readlink -f "$(command -v java)")
|
||||
JAVA_HOME=$(dirname "$(dirname "$JAVA_BIN")")
|
||||
echo "Detected JAVA_HOME=$JAVA_HOME"
|
||||
echo "JAVA_HOME=$JAVA_HOME" >> "$GITHUB_ENV"
|
||||
|
||||
# 4) Checkout du dépôt (Node est déjà garanti à ce stade)
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
# 5) Vérification des versions (pour les logs)
|
||||
- name: Show Java & Maven versions
|
||||
shell: sh
|
||||
run: |
|
||||
echo "JAVA_HOME is: $JAVA_HOME"
|
||||
java -version
|
||||
mvn -version
|
||||
|
||||
# 6) Build Maven
|
||||
- name: Build with Maven
|
||||
shell: sh
|
||||
run: mvn -B clean verify
|
||||
@@ -1,5 +1,5 @@
|
||||
# Étape 1 : Build avec Maven et Java 17
|
||||
FROM openjdk:17-jdk-slim
|
||||
FROM eclipse-temurin:17-jdk-jammy
|
||||
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
16598
dgi_zone_pilote.geojson
Normal file
46
docker-compose-prod.yml
Normal file
@@ -0,0 +1,46 @@
|
||||
version: '3.9'
|
||||
|
||||
services:
|
||||
|
||||
db:
|
||||
image: postgres:15
|
||||
container_name: fiscad-db
|
||||
restart: always
|
||||
environment:
|
||||
POSTGRES_DB: ${POSTGRES_DB_FISCAD}
|
||||
POSTGRES_USER: ${POSTGRES_USER_FISCAD}
|
||||
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD_FISCAD}
|
||||
ports:
|
||||
- "5432:5432"
|
||||
volumes:
|
||||
- db-data-fiscad:/var/lib/postgresql/data
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER_FISCAD}"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
|
||||
app:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
container_name: fiscad-app
|
||||
depends_on:
|
||||
- db
|
||||
environment:
|
||||
SPRING_DATASOURCE_URL: jdbc:postgresql://db:5432/${POSTGRES_DB_FISCAD}
|
||||
SPRING_DATASOURCE_USERNAME: ${POSTGRES_USER_FISCAD}
|
||||
SPRING_DATASOURCE_PASSWORD: ${POSTGRES_PASSWORD_FISCAD}
|
||||
SERVER_PORT: 8282
|
||||
IO_GMSS_FISCAD_PROFILE: abomey
|
||||
SPRING_PROFILES_ACTIVE: abomey
|
||||
ports:
|
||||
- "8282:8282"
|
||||
volumes:
|
||||
- /fiscad/uploads:/app/uploads
|
||||
- /fiscad/jasperReport:/app/jasperReport
|
||||
- /fiscad/logs:/app/logs
|
||||
restart: on-failure
|
||||
|
||||
volumes:
|
||||
db-data-fiscad:
|
||||
@@ -32,8 +32,8 @@ services:
|
||||
SPRING_DATASOURCE_USERNAME: ${POSTGRES_USER}
|
||||
SPRING_DATASOURCE_PASSWORD: ${POSTGRES_PASSWORD}
|
||||
SERVER_PORT: 8282
|
||||
IO_GMSS_FISCAD_PROFILE: abomey
|
||||
SPRING_PROFILES_ACTIVE: abomey
|
||||
IO_GMSS_FISCAD_PROFILE: dgi
|
||||
SPRING_PROFILES_ACTIVE: dgi
|
||||
ports:
|
||||
- "8282:8282"
|
||||
volumes:
|
||||
|
||||
@@ -13,16 +13,16 @@ import io.swagger.v3.oas.annotations.servers.Server;
|
||||
@OpenAPIDefinition(
|
||||
info = @Info(
|
||||
contact = @Contact(
|
||||
name = "Novatic",
|
||||
email = "contact@novatic.org",
|
||||
url = "https://novatic.org"
|
||||
name = "ABS Company Bénin",
|
||||
email = "contact@abs.org",
|
||||
url = "https://abs.org"
|
||||
),
|
||||
description = "Cette page présente toutes les ressources API pour la gestion des données socio-foncières et fiscales",
|
||||
title = "FISCAD",
|
||||
version = "1.0",
|
||||
license = @License(
|
||||
name = "Licence name",
|
||||
url = "https://novatic.org"
|
||||
url = "https://abs.org"
|
||||
),
|
||||
termsOfService = "Terms of service"
|
||||
),
|
||||
@@ -33,7 +33,7 @@ import io.swagger.v3.oas.annotations.servers.Server;
|
||||
),
|
||||
@Server(
|
||||
description = "TEST ENV (http)",
|
||||
url = "http://novatic.vps.webdock.cloud:8282"
|
||||
url = "https://backend.fiscad-test.novatic.org"
|
||||
),
|
||||
@Server(
|
||||
description = "PROD ENV (https)",
|
||||
|
||||
@@ -56,13 +56,21 @@ public class ParcelleGeomController {
|
||||
}
|
||||
|
||||
@GetMapping("/by-quartier/{codeQuartier}")
|
||||
public ResponseEntity<?> getAllTpeList(@PathVariable String codeQuartier) {
|
||||
public ResponseEntity<?> getParcellesGeomsByQuartier(@PathVariable String codeQuartier) {
|
||||
return new ResponseEntity<>(
|
||||
new ApiResponse<>(true, parcelleGeomService.getParcelleGeomListUnQuatier(codeQuartier), "Liste des parcelle chargée avec succès."),
|
||||
HttpStatus.OK
|
||||
);
|
||||
}
|
||||
|
||||
@GetMapping("/by-arrondissement/{codeArrondissement}")
|
||||
public ResponseEntity<?> getParcellesGeomsByArrondissement(@PathVariable String codeArrondissement) {
|
||||
return new ResponseEntity<>(
|
||||
new ApiResponse<>(true, parcelleGeomService.getParcelleGeomListUnArrondissement(codeArrondissement), "Liste des parcelle chargée avec succès."),
|
||||
HttpStatus.OK
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@GetMapping("/all-paged")
|
||||
public ResponseEntity<?> getAllTpePaged(@RequestParam int pageNo, @RequestParam int pageSize) {
|
||||
|
||||
@@ -50,27 +50,35 @@ public class Enquete extends BaseEntity implements Serializable {
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
private Long id;
|
||||
|
||||
|
||||
@JsonFormat(pattern = "dd-MM-yyyy")
|
||||
@JsonDeserialize(using = LocalDateDeserializer.class)
|
||||
private LocalDate dateEnquete;
|
||||
|
||||
private boolean litige;
|
||||
|
||||
@JsonIgnore
|
||||
@ManyToOne
|
||||
private User user;
|
||||
|
||||
private Long mobileDataId;
|
||||
|
||||
@JsonIgnore
|
||||
@OneToMany(mappedBy = "enquete")
|
||||
private List<ActeurConcerne> acteurConcernes;
|
||||
|
||||
|
||||
@JsonIgnore
|
||||
@ManyToOne
|
||||
private Parcelle parcelle;
|
||||
|
||||
private Long parcelleExternalKey;
|
||||
|
||||
@JsonIgnore
|
||||
@ManyToOne
|
||||
private Bloc bloc;
|
||||
|
||||
|
||||
@ManyToOne
|
||||
private Campagne campagne;
|
||||
|
||||
@@ -80,6 +88,7 @@ public class Enquete extends BaseEntity implements Serializable {
|
||||
|
||||
@JsonIgnore
|
||||
@ManyToOne
|
||||
@JoinColumn(name = "proprietaire_id")
|
||||
private Personne personne ;
|
||||
|
||||
@JsonIgnore
|
||||
@@ -158,9 +167,11 @@ public class Enquete extends BaseEntity implements Serializable {
|
||||
private String surface;
|
||||
private int nbreBatiment;
|
||||
private int nbrePiscine;
|
||||
|
||||
@JsonFormat(pattern = "dd-MM-yyyy")
|
||||
@JsonDeserialize(using = LocalDateDeserializer.class)
|
||||
private LocalDate dateDebutExcemption;
|
||||
|
||||
@JsonFormat(pattern = "dd-MM-yyyy")
|
||||
@JsonDeserialize(using = LocalDateDeserializer.class)
|
||||
private LocalDate dateFinExcemption;
|
||||
|
||||
@@ -5,6 +5,9 @@ import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
|
||||
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||
import io.gmss.fiscad.entities.BaseEntity;
|
||||
import io.gmss.fiscad.entities.decoupage.Arrondissement;
|
||||
import io.gmss.fiscad.entities.decoupage.Commune;
|
||||
import io.gmss.fiscad.entities.decoupage.Departement;
|
||||
import io.gmss.fiscad.entities.decoupage.Quartier;
|
||||
import io.gmss.fiscad.enums.StatutParcelle;
|
||||
import jakarta.persistence.*;
|
||||
@@ -26,16 +29,20 @@ import java.io.Serializable;
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@SQLDelete(sql =
|
||||
"UPDATE parcelle " +
|
||||
"SET deleted = true " +
|
||||
"WHERE id = ?")
|
||||
@Where(clause = " deleted = false")
|
||||
//@SQLDelete(sql =
|
||||
// "UPDATE parcelle " +
|
||||
// "SET deleted = true " +
|
||||
// "WHERE id = ?")
|
||||
//@Where(clause = " deleted = false")
|
||||
public class ParcelleGeom extends BaseEntity implements Serializable {
|
||||
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
private Long id;
|
||||
private String NomDepartement;
|
||||
private String NomCommune;
|
||||
private String NomArrondissement;
|
||||
private String NomVillageQuartier;
|
||||
private String codeBloc;
|
||||
private String q;
|
||||
private String ilot;
|
||||
private String zone;
|
||||
@@ -47,60 +54,51 @@ public class ParcelleGeom extends BaseEntity implements Serializable {
|
||||
private String longitude;
|
||||
private String latitude;
|
||||
private String pointsPolygone;
|
||||
//////////
|
||||
private String departement;
|
||||
private String commune;
|
||||
private String arrondissement;
|
||||
private String villageQuartier;
|
||||
private String codeBloc;
|
||||
//private String codeParcelle;
|
||||
private String codeEquipe;
|
||||
private Integer superficie;
|
||||
private String elNumeroEtatLieux;
|
||||
private String elLot;
|
||||
private String elLettreParcelle;
|
||||
private String rfuQuartierOuZone;
|
||||
private String rfuIlot;
|
||||
private String rfuLettreParcelle;
|
||||
private String dateCollecte;
|
||||
private String nomLotissement;
|
||||
private String nomEtPrenoms;
|
||||
private String sourceCollecte;
|
||||
private String dateCollecte;
|
||||
private String sourceDonnees;
|
||||
private String observations;
|
||||
|
||||
|
||||
@Enumerated(EnumType.STRING)
|
||||
private StatutParcelle statutParcelle;
|
||||
|
||||
// @JsonIgnore
|
||||
// @ManyToOne
|
||||
// private Upload upload;
|
||||
|
||||
private Long uploadId;
|
||||
@ManyToOne
|
||||
private Departement departement;
|
||||
@ManyToOne
|
||||
private Commune commune;
|
||||
@ManyToOne
|
||||
private Arrondissement arrondissement;
|
||||
@ManyToOne
|
||||
private Quartier quartier ;
|
||||
@ColumnDefault("0")
|
||||
private int geomSrid;
|
||||
@JsonSerialize(using = GeometrySerializer.class)
|
||||
@JsonDeserialize(contentUsing = GeometryDeserializer.class)
|
||||
@Column(name = "geometry",columnDefinition = "geometry(Polygon,32631)")
|
||||
private Polygon geometry;
|
||||
@Column(columnDefinition = "TEXT")
|
||||
private String geometryString;
|
||||
private String codeInsae;
|
||||
private String numeroEtatLieux;
|
||||
private String numeroTitreFoncier;
|
||||
private String telephone;
|
||||
//private String codeParcelle;
|
||||
//private String codeEquipe;
|
||||
|
||||
//private String elLot;
|
||||
//private String elLettreParcelle;
|
||||
//private String rfuQuartierOuZone;
|
||||
//private String rfuIlot;
|
||||
//private String rfuLettreParcelle;
|
||||
|
||||
//private String nomLotissement;
|
||||
////////////
|
||||
|
||||
// @JsonIgnore
|
||||
// @OneToOne
|
||||
// private Parcelle parcelle;
|
||||
|
||||
@ManyToOne
|
||||
private Quartier quartier;
|
||||
|
||||
@ColumnDefault("0")
|
||||
private int geomSrid;
|
||||
|
||||
// @JsonSerialize(using = GeometrySerializer.class)
|
||||
// @JsonDeserialize(contentUsing = GeometryDeserializer.class)
|
||||
// @Column(name = "geom",columnDefinition = "geometry(Polygon,4326)")
|
||||
// private Polygon geometry ;
|
||||
|
||||
@JsonSerialize(using = GeometrySerializer.class)
|
||||
@JsonDeserialize(contentUsing = GeometryDeserializer.class)
|
||||
@Column(name = "geometry",columnDefinition = "geometry(Polygon,32631)")
|
||||
private Polygon geometry;
|
||||
|
||||
@Column(columnDefinition = "TEXT")
|
||||
private String geometryString;
|
||||
}
|
||||
|
||||
@@ -15,7 +15,7 @@ import java.io.Serializable;
|
||||
@Setter
|
||||
@Table(
|
||||
indexes = {
|
||||
@Index(name = "idx_terminal_external_bat", columnList = "terminalId, externalKey")
|
||||
@Index(name = "idx_terminal_external_dnc", columnList = "terminalId, externalKey")
|
||||
}
|
||||
)
|
||||
public class MobileDataDeclarationNc extends BaseEntity implements Serializable {
|
||||
|
||||
@@ -16,7 +16,7 @@ import java.io.Serializable;
|
||||
@Setter
|
||||
@Table(
|
||||
indexes = {
|
||||
@Index(name = "idx_terminal_external_bat", columnList = "terminalId, externalKey")
|
||||
@Index(name = "idx_terminal_external_activite", columnList = "terminalId, externalKey")
|
||||
}
|
||||
)
|
||||
public class MobileDataEnqueteActivite extends BaseEntity implements Serializable {
|
||||
|
||||
@@ -49,8 +49,9 @@ public class EnqueteActivite extends BaseEntity implements Serializable {
|
||||
@JsonDeserialize(using = LocalDateDeserializer.class)
|
||||
private LocalDate dateEnquete;
|
||||
|
||||
@Column(columnDefinition = "false")
|
||||
@Column(columnDefinition = "boolean default false", nullable = false)
|
||||
private boolean estDeclarer;
|
||||
|
||||
private String nc;
|
||||
private Long ChiffreAffaire;
|
||||
private String NumeroRccm;
|
||||
|
||||
@@ -120,28 +120,28 @@ public class ParcelleGeomServiceImpl implements ParcelleGeomService {
|
||||
}
|
||||
parcelleGeom.setUploadId(upload.getId());
|
||||
|
||||
parcelleGeom.setDepartement(propertiesNode.get("DEPARTEMENT").textValue());
|
||||
parcelleGeom.setCommune(propertiesNode.get("COMMUNE").textValue());
|
||||
parcelleGeom.setArrondissement(propertiesNode.get("ARRONDISSEMENT").textValue());
|
||||
parcelleGeom.setVillageQuartier(propertiesNode.get("VILLAGE_QUARTIER").textValue());
|
||||
parcelleGeom.setCodeBloc(propertiesNode.get("CODE_BLOC").textValue());
|
||||
parcelleGeom.setNupProvisoire(propertiesNode.get("CODE_PARCELLE").textValue());
|
||||
parcelleGeom.setCodeEquipe(propertiesNode.get("CODE_EQUIPE").textValue());
|
||||
try {
|
||||
parcelleGeom.setSuperficie(Integer.parseInt(propertiesNode.get("SUPERFICIE").textValue()));
|
||||
}catch (Exception e){
|
||||
}
|
||||
parcelleGeom.setElNumeroEtatLieux(propertiesNode.get("EL_NUMERO_ETAT_LIEUX").textValue());
|
||||
parcelleGeom.setElLot(propertiesNode.get("EL_LOT").textValue());
|
||||
parcelleGeom.setRfuQuartierOuZone(propertiesNode.get("RFU_QUARTIER_OU_ZONE").textValue());
|
||||
parcelleGeom.setElLettreParcelle(propertiesNode.get("EL_LETTRE_PARCELLE").textValue());
|
||||
parcelleGeom.setRfuIlot(propertiesNode.get("RFU_ILOT").textValue());
|
||||
parcelleGeom.setRfuLettreParcelle(propertiesNode.get("RFU_LETTRE_PARCELLE").textValue());
|
||||
parcelleGeom.setDateCollecte(propertiesNode.get("DATE_COLLECTE").textValue());
|
||||
parcelleGeom.setNomLotissement(propertiesNode.get("NOM_LOTISSEMENT").textValue());
|
||||
parcelleGeom.setNomEtPrenoms(propertiesNode.get("NOM_ET_PRENOMS").textValue());
|
||||
parcelleGeom.setSourceCollecte(propertiesNode.get("SOURCE_COLLECTE").textValue());
|
||||
parcelleGeom.setObservations(propertiesNode.get("OBSERVATIONS").textValue());
|
||||
// parcelleGeom.setDepartement(propertiesNode.get("DEPARTEMENT").textValue());
|
||||
// parcelleGeom.setCommune(propertiesNode.get("COMMUNE").textValue());
|
||||
// parcelleGeom.setArrondissement(propertiesNode.get("ARRONDISSEMENT").textValue());
|
||||
// parcelleGeom.setVillageQuartier(propertiesNode.get("VILLAGE_QUARTIER").textValue());
|
||||
// parcelleGeom.setCodeBloc(propertiesNode.get("CODE_BLOC").textValue());
|
||||
// parcelleGeom.setNupProvisoire(propertiesNode.get("CODE_PARCELLE").textValue());
|
||||
// parcelleGeom.setCodeEquipe(propertiesNode.get("CODE_EQUIPE").textValue());
|
||||
// try {
|
||||
// parcelleGeom.setSuperficie(Integer.parseInt(propertiesNode.get("SUPERFICIE").textValue()));
|
||||
// }catch (Exception e){
|
||||
// }
|
||||
// parcelleGeom.setElNumeroEtatLieux(propertiesNode.get("EL_NUMERO_ETAT_LIEUX").textValue());
|
||||
// parcelleGeom.setElLot(propertiesNode.get("EL_LOT").textValue());
|
||||
// parcelleGeom.setRfuQuartierOuZone(propertiesNode.get("RFU_QUARTIER_OU_ZONE").textValue());
|
||||
// parcelleGeom.setElLettreParcelle(propertiesNode.get("EL_LETTRE_PARCELLE").textValue());
|
||||
// parcelleGeom.setRfuIlot(propertiesNode.get("RFU_ILOT").textValue());
|
||||
// parcelleGeom.setRfuLettreParcelle(propertiesNode.get("RFU_LETTRE_PARCELLE").textValue());
|
||||
// parcelleGeom.setDateCollecte(propertiesNode.get("DATE_COLLECTE").textValue());
|
||||
// parcelleGeom.setNomLotissement(propertiesNode.get("NOM_LOTISSEMENT").textValue());
|
||||
// parcelleGeom.setNomEtPrenoms(propertiesNode.get("NOM_ET_PRENOMS").textValue());
|
||||
// parcelleGeom.setSourceCollecte(propertiesNode.get("SOURCE_COLLECTE").textValue());
|
||||
// parcelleGeom.setObservations(propertiesNode.get("OBSERVATIONS").textValue());
|
||||
parcelleGeom= parcelleGeomRepository.save(parcelleGeom);
|
||||
try {
|
||||
setStatutParcelleGeomFromGeoJson(parcelleGeom);
|
||||
@@ -180,6 +180,11 @@ public class ParcelleGeomServiceImpl implements ParcelleGeomService {
|
||||
return parcelleGeomRepository.findAllByQuartier_Code(codeQuartier);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<ParcelleGeom> getParcelleGeomListUnArrondissement(String codeArrondissement) {
|
||||
return parcelleGeomRepository.findAllByQuartier_Arrondissement_Code(codeArrondissement);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
|
||||
@@ -21,6 +21,7 @@ public interface ParcelleGeomService {
|
||||
Page<ParcelleGeom> getParcelleGeomList(Pageable pageable);
|
||||
List<ParcelleGeom> getParcelleGeomList();
|
||||
List<ParcelleGeom> getParcelleGeomListUnQuatier(String codeQuartier);
|
||||
public List<ParcelleGeom> getParcelleGeomListUnArrondissement(String codeArrondissement);
|
||||
|
||||
Optional<ParcelleGeom> getParcelleGeomById(Long id);
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ public class EnqueteActivitePayload {
|
||||
private Long idBackend;
|
||||
private Long externalKey;
|
||||
private Long terminalId;
|
||||
private Long ChiffreAffaire;
|
||||
private Long ChiffreAffaire; // Todo : Revoir le nom de la variable 15/12/2015
|
||||
private String NumeroRccm;
|
||||
private boolean synchronise;
|
||||
private String observation;
|
||||
|
||||
@@ -12,6 +12,7 @@ import java.util.Optional;
|
||||
public interface ParcelleGeomRepository extends JpaRepository<ParcelleGeom, Long> {
|
||||
|
||||
List<ParcelleGeom> findAllByQuartier_Code(String code);
|
||||
List<ParcelleGeom> findAllByQuartier_Arrondissement_Code(String code);
|
||||
|
||||
Optional<ParcelleGeom> findFirstByNupProvisoire(String numProvisoir);
|
||||
@Modifying
|
||||
|
||||
@@ -6,6 +6,7 @@ io.gmss.fiscad.profile=dgi
|
||||
#spring.datasource.username=infocad_user
|
||||
#spring.datasource.password=W5fwD({9*q53
|
||||
# LOCAL ENV
|
||||
|
||||
spring.datasource.url=jdbc:postgresql://localhost:5432/fiscad_dgi
|
||||
spring.datasource.username=infocad_user
|
||||
spring.datasource.password=W5fwD({9*q53
|
||||
|
||||
|
Before Width: | Height: | Size: 1.1 MiB |
|
Before Width: | Height: | Size: 1.1 MiB |
|
Before Width: | Height: | Size: 295 KiB |
|
Before Width: | Height: | Size: 295 KiB |
|
Before Width: | Height: | Size: 158 KiB |
|
Before Width: | Height: | Size: 158 KiB |
|
Before Width: | Height: | Size: 63 KiB |
|
Before Width: | Height: | Size: 63 KiB |
|
Before Width: | Height: | Size: 489 KiB |
|
Before Width: | Height: | Size: 489 KiB |
|
Before Width: | Height: | Size: 470 KiB |
|
Before Width: | Height: | Size: 470 KiB |
|
Before Width: | Height: | Size: 2.2 MiB |
|
Before Width: | Height: | Size: 2.2 MiB |
|
Before Width: | Height: | Size: 210 KiB |
|
Before Width: | Height: | Size: 210 KiB |
|
Before Width: | Height: | Size: 126 KiB |
|
Before Width: | Height: | Size: 126 KiB |
|
Before Width: | Height: | Size: 335 KiB |
|
Before Width: | Height: | Size: 335 KiB |
|
Before Width: | Height: | Size: 352 KiB |
|
Before Width: | Height: | Size: 352 KiB |
|
Before Width: | Height: | Size: 78 KiB |
|
Before Width: | Height: | Size: 78 KiB |
|
Before Width: | Height: | Size: 3.9 MiB |
|
Before Width: | Height: | Size: 3.9 MiB |
|
Before Width: | Height: | Size: 1.3 MiB |
|
Before Width: | Height: | Size: 1.3 MiB |
|
Before Width: | Height: | Size: 178 KiB |
|
Before Width: | Height: | Size: 178 KiB |
|
Before Width: | Height: | Size: 105 KiB |
|
Before Width: | Height: | Size: 105 KiB |
|
Before Width: | Height: | Size: 89 KiB |
|
Before Width: | Height: | Size: 89 KiB |
|
Before Width: | Height: | Size: 1.6 MiB |
|
Before Width: | Height: | Size: 1.6 MiB |
|
Before Width: | Height: | Size: 1.5 MiB |
|
Before Width: | Height: | Size: 1.5 MiB |
|
Before Width: | Height: | Size: 1.9 MiB |
|
Before Width: | Height: | Size: 1.9 MiB |
|
Before Width: | Height: | Size: 317 KiB |
|
Before Width: | Height: | Size: 317 KiB |
|
Before Width: | Height: | Size: 246 KiB |
|
Before Width: | Height: | Size: 246 KiB |
|
Before Width: | Height: | Size: 19 KiB |
|
Before Width: | Height: | Size: 19 KiB |
|
Before Width: | Height: | Size: 19 KiB |
|
Before Width: | Height: | Size: 19 KiB |
|
Before Width: | Height: | Size: 4.3 MiB |
|
Before Width: | Height: | Size: 4.3 MiB |
|
Before Width: | Height: | Size: 112 KiB |
|
Before Width: | Height: | Size: 112 KiB |
|
Before Width: | Height: | Size: 114 KiB |
|
Before Width: | Height: | Size: 114 KiB |
|
Before Width: | Height: | Size: 35 KiB |
|
Before Width: | Height: | Size: 35 KiB |
|
Before Width: | Height: | Size: 150 KiB |
|
Before Width: | Height: | Size: 150 KiB |
|
Before Width: | Height: | Size: 135 KiB |
|
Before Width: | Height: | Size: 135 KiB |
|
Before Width: | Height: | Size: 139 KiB |
|
Before Width: | Height: | Size: 139 KiB |
|
Before Width: | Height: | Size: 159 KiB |
|
Before Width: | Height: | Size: 159 KiB |
|
Before Width: | Height: | Size: 150 KiB |
|
Before Width: | Height: | Size: 150 KiB |
|
Before Width: | Height: | Size: 266 KiB |
|
Before Width: | Height: | Size: 266 KiB |
|
Before Width: | Height: | Size: 47 KiB |
|
Before Width: | Height: | Size: 47 KiB |
|
Before Width: | Height: | Size: 38 KiB |
|
Before Width: | Height: | Size: 38 KiB |
|
Before Width: | Height: | Size: 40 KiB |
|
Before Width: | Height: | Size: 40 KiB |
|
Before Width: | Height: | Size: 47 KiB |
|
Before Width: | Height: | Size: 47 KiB |
|
Before Width: | Height: | Size: 263 KiB |
|
Before Width: | Height: | Size: 263 KiB |
|
Before Width: | Height: | Size: 147 KiB |
|
Before Width: | Height: | Size: 147 KiB |
|
Before Width: | Height: | Size: 392 KiB |
|
Before Width: | Height: | Size: 392 KiB |