3 Commits

Author SHA1 Message Date
1e810f0ddb Merge pull request 'develop' (#149) from develop into main
All checks were successful
CD - Deploy on main / deploy (push) Successful in 48s
Reviewed-on: #149
2026-03-09 20:00:49 +00:00
6494fe235e Merge pull request 'Gestion des barem' (#148) from features/crud_entites into develop
Reviewed-on: #148
2026-03-09 20:00:03 +00:00
9b4edcdcea Gestion des barem
All checks were successful
CI - Build & Test (develop) / build-and-test (pull_request) Successful in 30s
2026-03-09 20:59:23 +01:00
2 changed files with 3 additions and 2 deletions

View File

@@ -163,11 +163,12 @@ public class ImpositionsTfuServiceImpl implements ImpositionsTfuService {
@Override @Override
public List<ImpositionsTfuPaylaodWeb> getImpositionsTfuByUserIdIds(Long userId) { public List<ImpositionsTfuPaylaodWeb> getImpositionsTfuByUserIdIds(Long userId) {
System.out.println(userId);
List<Structure> structures = structureService.getListStructureUserId(userId); List<Structure> structures = structureService.getListStructureUserId(userId);
List<Long> structureIds = structures.stream() List<Long> structureIds = structures.stream()
.map(Structure::getId) .map(Structure::getId)
.toList(); .toList();
System.out.println(structureIds.get(0));
return impositionsTfuRepository.findByStructureIdsToDto(structureIds); return impositionsTfuRepository.findByStructureIdsToDto(structureIds);
} }
} }

View File

@@ -143,7 +143,7 @@ public interface ImpositionsTfuRepository extends JpaRepository<ImpositionsTfu,
LEFT JOIN i.exercice e LEFT JOIN i.exercice e
LEFT JOIN i.commune c LEFT JOIN i.commune c
LEFT JOIN i.structure s LEFT JOIN i.structure s
WHERE s.id in(:structureIds) WHERE s.id in (:structureIds)
""") """)
List<ImpositionsTfuPaylaodWeb> findByStructureIdsToDto(@Param("structureIds") List<Long> structureIds); List<ImpositionsTfuPaylaodWeb> findByStructureIdsToDto(@Param("structureIds") List<Long> structureIds);