Skip to content

Commit

Permalink
[SDIS 973] Corrige la méthode calcul_debit_pression_973
Browse files Browse the repository at this point in the history
Issue: #240411
Change-Id: Id1e201d68a2236a7069c93844a97fdbe4096d303
  • Loading branch information
Clément GRENOT committed Jan 17, 2025
1 parent 3eb96d8 commit 3af6133
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,6 @@ BEGIN
select thn.code into p_code_type_hydrant_nature from remocra.hydrant h left join remocra.type_hydrant_nature thn on (thn.id=h.nature) where h.id = id_hydrant;
-- Définition des règles de calcul_debit_pression_973
IF FOUND THEN
-- Pression dynamique
---- Pression dynamique insuffisante
IF(p_rec.pression_dyn IS NULL) THEN
SELECT id INTO p_anomalie_id FROM remocra.type_hydrant_anomalie WHERE code = 'PRESSION_DYN_INSUFF';
INSERT INTO remocra.hydrant_anomalies (hydrant,anomalies) VALUES (p_rec.id,p_anomalie_id);
END IF;
-- Pression
---- Pression insuffisante
IF(p_rec.pression IS NULL OR p_rec.pression < 1) THEN
Expand Down

0 comments on commit 3af6133

Please sign in to comment.