id查询条件顺序

parent b3f31f4c
...@@ -160,7 +160,7 @@ public class UserDetailServiceImpl implements IUserDetailService { ...@@ -160,7 +160,7 @@ public class UserDetailServiceImpl implements IUserDetailService {
private PageRequest buildPageRequest(int pageNumber, int pagzSize, String sortType) { private PageRequest buildPageRequest(int pageNumber, int pagzSize, String sortType) {
Sort sort = null; Sort sort = null;
if ("auto".equals(sortType)) { if ("auto".equals(sortType)) {
sort = new Sort(Sort.Direction.DESC, "userId"); sort = new Sort(Sort.Direction.ASC, "userId");
} }
return new PageRequest(pageNumber - 1, pagzSize, sort); return new PageRequest(pageNumber - 1, pagzSize, sort);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment