feat: Implement feature to get all projects from an employee (SCRUM-31) #37
1 changed files with 2 additions and 1 deletions
|
@ -14,6 +14,7 @@ import org.springframework.web.client.HttpClientErrorException;
|
||||||
import org.springframework.web.client.RestTemplate;
|
import org.springframework.web.client.RestTemplate;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
@Service
|
@Service
|
||||||
public class EmployeeService {
|
public class EmployeeService {
|
||||||
|
@ -59,7 +60,7 @@ public class EmployeeService {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public ArrayList<GetProjectDto> getProjects(Long employeeId) {
|
public List<GetProjectDto> getProjects(Long employeeId) {
|
||||||
ArrayList<ProjectEntity> projects = this.projectRepository.findAllByEmployeeId(employeeId);
|
ArrayList<ProjectEntity> projects = this.projectRepository.findAllByEmployeeId(employeeId);
|
||||||
ArrayList<GetProjectDto> projectDtos = new ArrayList<>();
|
ArrayList<GetProjectDto> projectDtos = new ArrayList<>();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue