Add validation to utils
This commit is contained in:
@@ -65,6 +65,11 @@ public class PersonService{
|
||||
}
|
||||
}
|
||||
|
||||
public Person getPersonByName(String personName, UUID raidGroupId){
|
||||
return personRepository.findByPersonNameAndRaidGroupId(personName, raidGroupId);
|
||||
|
||||
}
|
||||
|
||||
public List<Person> getPeopleByRaidGroup(UUID raidGroupId, int page, int pageSize){
|
||||
return personRepository.findAllByRaidGroupId(raidGroupId, PageRequest.of(page, pageSize, Sort.by("personName").ascending()));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user