Skip to content

Commit

Permalink
List<D> getUserList(Specification<E> specification)
Browse files Browse the repository at this point in the history
  • Loading branch information
dongxl123 committed Mar 25, 2019
1 parent bd76f0b commit eefdf9b
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -234,4 +234,13 @@ public D getUserByMobile(String mobile) {
return userDTO;
}

public List<D> getUserList(Specification<E> specification) {
List<E> userList = winSecurityUserRepository.findAll(specification);
List<D> userDTOList = WinSecurityUserMapper.INSTANCE.toUserDTOList(userList, winSecurityClassLoaderConfiguration.getUserDTOClass());
if (iUserFiller != null) {
iUserFiller.fillData(userDTOList);
}
return userDTOList;
}

}

0 comments on commit eefdf9b

Please sign in to comment.