|
@@ -6,6 +6,7 @@ import org.springframework.data.jpa.repository.JpaRepository;
|
|
|
import org.springframework.data.jpa.repository.NativeQuery;
|
|
import org.springframework.data.jpa.repository.NativeQuery;
|
|
|
import org.springframework.data.repository.query.Param;
|
|
import org.springframework.data.repository.query.Param;
|
|
|
|
|
|
|
|
|
|
+import fr.triplea.demovote.persistence.dto.ParticipantList;
|
|
|
import fr.triplea.demovote.persistence.dto.ParticipantOptionList;
|
|
import fr.triplea.demovote.persistence.dto.ParticipantOptionList;
|
|
|
import fr.triplea.demovote.persistence.dto.ParticipantTransfer;
|
|
import fr.triplea.demovote.persistence.dto.ParticipantTransfer;
|
|
|
import fr.triplea.demovote.persistence.model.Participant;
|
|
import fr.triplea.demovote.persistence.model.Participant;
|
|
@@ -48,39 +49,24 @@ public interface ParticipantRepository extends JpaRepository<Participant, Intege
|
|
|
+ "FROM vote.participants AS p "
|
|
+ "FROM vote.participants AS p "
|
|
|
+ "WHERE p.numero_participant = :id AND p.flag_actif IS TRUE ")
|
|
+ "WHERE p.numero_participant = :id AND p.flag_actif IS TRUE ")
|
|
|
ParticipantTransfer searchById(@Param("id") int id);
|
|
ParticipantTransfer searchById(@Param("id") int id);
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
@NativeQuery("SELECT DISTINCT "
|
|
@NativeQuery("SELECT DISTINCT "
|
|
|
- + "TO_CHAR(p.date_creation, 'DD/MM/YYYY HH24:MI:SS') as date_creation, "
|
|
|
|
|
- + "TO_CHAR(p.date_modification, 'DD/MM/YYYY HH24:MI:SS') as date_modification, "
|
|
|
|
|
+ "p.numero_participant, "
|
|
+ "p.numero_participant, "
|
|
|
+ "p.nom, "
|
|
+ "p.nom, "
|
|
|
+ "p.prenom, "
|
|
+ "p.prenom, "
|
|
|
+ "p.pseudonyme, "
|
|
+ "p.pseudonyme, "
|
|
|
- + "'' AS mot_de_passe, "
|
|
|
|
|
+ "p.groupe, "
|
|
+ "p.groupe, "
|
|
|
- + "p.delai_deconnexion, "
|
|
|
|
|
- + "p.adresse, "
|
|
|
|
|
- + "p.code_postal, "
|
|
|
|
|
- + "p.ville, "
|
|
|
|
|
- + "p.pays, "
|
|
|
|
|
- + "p.numero_telephone, "
|
|
|
|
|
+ "p.email, "
|
|
+ "p.email, "
|
|
|
+ "p.statut, "
|
|
+ "p.statut, "
|
|
|
- + "p.flag_machine, "
|
|
|
|
|
- + "p.commentaire, "
|
|
|
|
|
+ "p.flag_jour1, "
|
|
+ "p.flag_jour1, "
|
|
|
+ "p.flag_jour2, "
|
|
+ "p.flag_jour2, "
|
|
|
+ "p.flag_jour3, "
|
|
+ "p.flag_jour3, "
|
|
|
+ "p.flag_dodo_sur_place, "
|
|
+ "p.flag_dodo_sur_place, "
|
|
|
- + "p.flag_amigabus, "
|
|
|
|
|
- + "p.mode_paiement, "
|
|
|
|
|
- + "TO_CHAR(p.date_inscription, 'DD/MM/YYYY HH24:MI:SS') as date_inscription, "
|
|
|
|
|
- + "CAST(p.somme_recue AS VARCHAR) AS somme_recue, "
|
|
|
|
|
+ "p.flag_arrive "
|
|
+ "p.flag_arrive "
|
|
|
+ "FROM vote.participants AS p "
|
|
+ "FROM vote.participants AS p "
|
|
|
+ "WHERE p.flag_actif IS TRUE "
|
|
+ "WHERE p.flag_actif IS TRUE "
|
|
|
+ "ORDER BY p.nom ASC, p.prenom ASC, p.pseudonyme ASC ")
|
|
+ "ORDER BY p.nom ASC, p.prenom ASC, p.pseudonyme ASC ")
|
|
|
- List<ParticipantTransfer> getList();
|
|
|
|
|
|
|
+ List<ParticipantList> getList();
|
|
|
|
|
|
|
|
@NativeQuery("SELECT DISTINCT p.* FROM vote.participants AS p WHERE p.flag_actif IS TRUE ORDER BY p.nom ASC, p.prenom ASC, p.pseudonyme ASC ")
|
|
@NativeQuery("SELECT DISTINCT p.* FROM vote.participants AS p WHERE p.flag_actif IS TRUE ORDER BY p.nom ASC, p.prenom ASC, p.pseudonyme ASC ")
|
|
|
List<Participant> findAll();
|
|
List<Participant> findAll();
|