From da84ea63e78926698ac4a499826c92d345cfb5b6 Mon Sep 17 00:00:00 2001 From: Emilie Genton Date: Thu, 17 Oct 2024 15:22:51 +0200 Subject: [PATCH] =?UTF-8?q?Corrige=20la=20cr=C3=A9ation=20de=20PEI=20qui?= =?UTF-8?q?=20ont=20des=20zones=20sp=C3=A9ciales?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Issue: #228546 Change-Id: I43889702e59d2670021148c8fd07af4e40796c39 --- .../java/fr/sdis83/remocra/repository/NumeroUtilRepository.java | 2 +- .../fr/sdis83/remocra/usecase/synchro/ValideIncomingMobile.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api-remocra/api/src/main/java/fr/sdis83/remocra/repository/NumeroUtilRepository.java b/api-remocra/api/src/main/java/fr/sdis83/remocra/repository/NumeroUtilRepository.java index 4f8f9907..8867641b 100755 --- a/api-remocra/api/src/main/java/fr/sdis83/remocra/repository/NumeroUtilRepository.java +++ b/api-remocra/api/src/main/java/fr/sdis83/remocra/repository/NumeroUtilRepository.java @@ -578,7 +578,7 @@ public static ZoneSpeciale computeZoneSpeciale(Hydrant hydrant) { .select(ZONE_SPECIALE.fields()) .from(ZONE_SPECIALE) .where( - "ST_Contains({0}, st_pointfromtext({1},{2}))", + "ST_Contains({0}, st_pointfromtext(ST_AsText({1}),{2}))", ZONE_SPECIALE.GEOMETRIE, hydrant.getGeometrie().toString(), GlobalConstants.SRID_PARAM) diff --git a/api-remocra/api/src/main/java/fr/sdis83/remocra/usecase/synchro/ValideIncomingMobile.java b/api-remocra/api/src/main/java/fr/sdis83/remocra/usecase/synchro/ValideIncomingMobile.java index 4f09d8d9..92f0d019 100644 --- a/api-remocra/api/src/main/java/fr/sdis83/remocra/usecase/synchro/ValideIncomingMobile.java +++ b/api-remocra/api/src/main/java/fr/sdis83/remocra/usecase/synchro/ValideIncomingMobile.java @@ -199,7 +199,7 @@ private void gestionHydrant(Long currentUserId) { null, null, null, - null, + newHydrant.getGeometrie(), null, null, null,