From 4d06e05e77d3378c4205c5c5d412597e24b611d1 Mon Sep 17 00:00:00 2001 From: y72wvh Date: Wed, 18 Oct 2023 09:26:17 +0200 Subject: [PATCH] fix: rollback moog events --- pom.xml | 2 +- .../util/Dataloader.java | 16 +++++++--------- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/pom.xml b/pom.xml index 8890a285..e20d36d4 100644 --- a/pom.xml +++ b/pom.xml @@ -9,7 +9,7 @@ fr.insee.survey platine-management - 1.0.26 + 1.0.27 platine-management REST API for communication between DB and Platine-Management UI and Platine-My-Surveys UI diff --git a/src/main/java/fr/insee/survey/datacollectionmanagement/util/Dataloader.java b/src/main/java/fr/insee/survey/datacollectionmanagement/util/Dataloader.java index 86035794..bb91ff6c 100644 --- a/src/main/java/fr/insee/survey/datacollectionmanagement/util/Dataloader.java +++ b/src/main/java/fr/insee/survey/datacollectionmanagement/util/Dataloader.java @@ -236,22 +236,20 @@ private void initOrder() { Long nbExistingOrders = orderRepository.count(); LOGGER.info("{} orders in database", nbExistingOrders); - if (nbExistingOrders !=9 ) { + if (nbExistingOrders !=8 ) { // Creating table order LOGGER.info("loading eventorder data"); orderRepository.deleteAll(); orderRepository - .saveAndFlush(new EventOrder(Long.parseLong("9"), TypeQuestioningEvent.REFUSAL.toString(), 9)); + .saveAndFlush(new EventOrder(Long.parseLong("8"), TypeQuestioningEvent.REFUSAL.toString(), 8)); orderRepository - .saveAndFlush(new EventOrder(Long.parseLong("8"), TypeQuestioningEvent.VALINT.toString(), 8)); + .saveAndFlush(new EventOrder(Long.parseLong("7"), TypeQuestioningEvent.VALINT.toString(), 7)); orderRepository - .saveAndFlush(new EventOrder(Long.parseLong("7"), TypeQuestioningEvent.VALPAP.toString(), 7)); - orderRepository.saveAndFlush(new EventOrder(Long.parseLong("6"), TypeQuestioningEvent.HC.toString(), 6)); + .saveAndFlush(new EventOrder(Long.parseLong("6"), TypeQuestioningEvent.VALPAP.toString(), 6)); + orderRepository.saveAndFlush(new EventOrder(Long.parseLong("5"), TypeQuestioningEvent.HC.toString(), 5)); orderRepository - .saveAndFlush(new EventOrder(Long.parseLong("5"), TypeQuestioningEvent.PARTIELINT.toString(), 5)); - orderRepository.saveAndFlush(new EventOrder(Long.parseLong("4"), TypeQuestioningEvent.WASTE.toString(), 4)); - orderRepository.saveAndFlush(new EventOrder(Long.parseLong("3"), TypeQuestioningEvent.FOLLOWUP.toString(), 3)); - + .saveAndFlush(new EventOrder(Long.parseLong("4"), TypeQuestioningEvent.PARTIELINT.toString(), 4)); + orderRepository.saveAndFlush(new EventOrder(Long.parseLong("3"), TypeQuestioningEvent.WASTE.toString(), 3)); orderRepository.saveAndFlush(new EventOrder(Long.parseLong("2"), TypeQuestioningEvent.PND.toString(), 2)); orderRepository .saveAndFlush(new EventOrder(Long.parseLong("1"), TypeQuestioningEvent.INITLA.toString(), 1));