mirror of
https://git.imnavajas.es/jjimenez/erp-imprimelibros.git
synced 2026-01-13 08:58:48 +00:00
listado de pedidos admin hecho
This commit is contained in:
@ -17,4 +17,5 @@ public interface UserService extends UserDetailsService {
|
||||
* @return página de usuarios
|
||||
*/
|
||||
Page<User> findByRoleAndSearch(String role, String query, Pageable pageable);
|
||||
User findById(Long id);
|
||||
}
|
||||
|
||||
@ -31,4 +31,8 @@ public class UserServiceImpl implements UserService {
|
||||
if (query == null || query.isBlank()) query = null;
|
||||
return userDao.searchUsers(role, query, pageable);
|
||||
}
|
||||
|
||||
public User findById(Long id) {
|
||||
return userDao.findById(id).orElse(null);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user