Refactoring - Version stable

This commit is contained in:
dahoud
2026-03-28 14:21:30 +00:00
parent 00b981c510
commit a740c172ef
4402 changed files with 88517 additions and 1555 deletions

View File

@@ -356,6 +356,15 @@ public class OrganisationService {
return organisationRepository.findAllActives(Page.of(page, size), Sort.by("nom").ascending());
}
/**
* Compte le nombre d'organisations actives
*
* @return nombre total d'organisations actives
*/
public long compterOrganisationsActives() {
return organisationRepository.countActives();
}
/**
* Recherche d'organisations par nom
*
@@ -559,14 +568,11 @@ public class OrganisationService {
dto.setCreePar(organisation.getCreePar());
dto.setModifiePar(organisation.getModifiePar());
dto.setActif(organisation.getActif());
dto.setVersion(organisation.getVersion() != null ? organisation.getVersion() : 0L);
dto.setVersion(organisation.getVersion());
dto.setOrganisationPublique(
organisation.getOrganisationPublique() != null ? organisation.getOrganisationPublique() : true);
dto.setAccepteNouveauxMembres(
organisation.getAccepteNouveauxMembres() != null ? organisation.getAccepteNouveauxMembres() : true);
dto.setCotisationObligatoire(
organisation.getCotisationObligatoire() != null ? organisation.getCotisationObligatoire() : false);
dto.setOrganisationPublique(organisation.getOrganisationPublique());
dto.setAccepteNouveauxMembres(organisation.getAccepteNouveauxMembres());
dto.setCotisationObligatoire(organisation.getCotisationObligatoire());
dto.setMontantCotisationAnnuelle(organisation.getMontantCotisationAnnuelle());
return dto;