1
0
forked from PGL/Clyde

this is a test dw

This commit is contained in:
2024-04-10 22:00:08 +02:00
parent 9d0b3da9d3
commit 0c04bed799
6 changed files with 28 additions and 68 deletions

View File

@@ -49,28 +49,4 @@ public class UserCurriculumService {
}
public HashMap<String,Object> findAllExternalCurriculumByInscriptionRequestId(Long id) {
ArrayList<ExternalCurriculum> list = externalCurriculumRepo.getExternalCurriculumByInscriptionRequestId(id);
ArrayList<HashMap<String, Object>> externalCurriculumList = new ArrayList<HashMap<String, Object>>();
for (int i = 0; i < list.size(); i++) {
HashMap<String, Object> element = new HashMap<>();
element.put("id", list.get(0).getId());
element.put("inscriptionRequestId", list.get(0).getInscriptionRequestId());
element.put("school", list.get(0).getSchool());
element.put("formation", list.get(0).getFormation());
element.put("completion", list.get(0).getCompletion());
element.put("startYear", list.get(0).getStartYear());
element.put("endYear", list.get(0).getEndYear());
element.put("justifDocUrl", list.get(0).getJustifdocUrl());
element.put("state", list.get(0).getState());
externalCurriculumList.add(element);
}
HashMap<String, Object> toReturn = new HashMap<String, Object>();
toReturn.put("externalCurriculumList", externalCurriculumList);
return toReturn;
}
}