Gestion des barem
All checks were successful
CI - Build & Test (develop) / build-and-test (pull_request) Successful in 30s
All checks were successful
CI - Build & Test (develop) / build-and-test (pull_request) Successful in 30s
This commit is contained in:
@@ -163,11 +163,12 @@ public class ImpositionsTfuServiceImpl implements ImpositionsTfuService {
|
||||
|
||||
@Override
|
||||
public List<ImpositionsTfuPaylaodWeb> getImpositionsTfuByUserIdIds(Long userId) {
|
||||
System.out.println(userId);
|
||||
List<Structure> structures = structureService.getListStructureUserId(userId);
|
||||
List<Long> structureIds = structures.stream()
|
||||
.map(Structure::getId)
|
||||
.toList();
|
||||
|
||||
System.out.println(structureIds.get(0));
|
||||
return impositionsTfuRepository.findByStructureIdsToDto(structureIds);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -143,7 +143,7 @@ public interface ImpositionsTfuRepository extends JpaRepository<ImpositionsTfu,
|
||||
LEFT JOIN i.exercice e
|
||||
LEFT JOIN i.commune c
|
||||
LEFT JOIN i.structure s
|
||||
WHERE s.id in(:structureIds)
|
||||
WHERE s.id in (:structureIds)
|
||||
""")
|
||||
List<ImpositionsTfuPaylaodWeb> findByStructureIdsToDto(@Param("structureIds") List<Long> structureIds);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user