corregir clase de reportes
Some checks failed
PR Builder / Build-PR (pull_request) Failing after 2m46s
Some checks failed
PR Builder / Build-PR (pull_request) Failing after 2m46s
This commit is contained in:
parent
d138b87c94
commit
ff231231aa
@ -11,6 +11,6 @@ public interface EmployeeRepository extends JpaRepository<Employee, UUID> {
|
||||
Optional<Employee> findByUsername(String username);
|
||||
|
||||
Optional<Employee> findByPersonalEmail(String personalEmail);
|
||||
Optional<Employee> findByTeamIdAndLeadManager(UUID teamId);
|
||||
Optional<Employee> findByTeamId(UUID teamId);
|
||||
List<Employee> findByTeamName(String teamName);
|
||||
}
|
@ -50,7 +50,7 @@ public class EmployeeService {
|
||||
|
||||
public String getTeamLeadName(final UUID teamId) {
|
||||
// Encuentra al empleado con el rol de lead_manager en el equipo especificado
|
||||
Optional<Employee> leadManager = employeeRepository.findByTeamIdAndLeadManager(teamId);
|
||||
Optional<Employee> leadManager = employeeRepository.findByTeamId(teamId);
|
||||
|
||||
return leadManager.map(employee -> employee.getFirstName() + " " + employee.getLastName())
|
||||
.orElse("No asignado");
|
||||
|
Loading…
Reference in New Issue
Block a user