From fe901390f416990f0833ed9b184f4f937e0ed65a Mon Sep 17 00:00:00 2001 From: Emilie Genton Date: Wed, 7 Feb 2024 12:15:06 +0100 Subject: [PATCH] Corrige le jumelage de PEI Issue: #206024 Change-Id: Ib963f3038669921e9ed45fd3acf6223b66605b3a --- .../fr/sdis83/remocra/repository/HydrantPibiRepository.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/remocra/src/main/java/fr/sdis83/remocra/repository/HydrantPibiRepository.java b/remocra/src/main/java/fr/sdis83/remocra/repository/HydrantPibiRepository.java index 934799f1f..50f13aa4a 100755 --- a/remocra/src/main/java/fr/sdis83/remocra/repository/HydrantPibiRepository.java +++ b/remocra/src/main/java/fr/sdis83/remocra/repository/HydrantPibiRepository.java @@ -201,7 +201,7 @@ public JSONObject findJumelage(String geometrie) { .where( "ST_DISTANCE({0}, {1}) < {2}", HYDRANT.GEOMETRIE, - parametreProvider.get().getSridInt() + geometrie, + "SRID=" + parametreProvider.get().getSridInt() + ";" + geometrie, DISTANCE_MINIMAL_JUMELAGE) .and(TYPE_HYDRANT_NATURE.CODE.eq(BI)) .and(HYDRANT_PIBI.JUMELE.isNull())