Compare commits
2 Commits
28da361054
...
6494fe235e
| Author | SHA1 | Date | |
|---|---|---|---|
| 6494fe235e | |||
| 9b4edcdcea |
@@ -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