按等级倒叙
This commit is contained in:
@@ -127,6 +127,7 @@ public class UserContributionController {
|
|||||||
wrapper.like(MyUserEntity::getTel,params.get("tel"));
|
wrapper.like(MyUserEntity::getTel,params.get("tel"));
|
||||||
}
|
}
|
||||||
wrapper.groupBy(UserContribution::getUserId);
|
wrapper.groupBy(UserContribution::getUserId);
|
||||||
|
wrapper.orderByDesc(UserContribution::getScore);
|
||||||
Page<UserContribution> page = contributionService.page(new Page<>(
|
Page<UserContribution> page = contributionService.page(new Page<>(
|
||||||
Long.parseLong(params.get("current").toString()), Long.parseLong(params.get("limit").toString())), wrapper);
|
Long.parseLong(params.get("current").toString()), Long.parseLong(params.get("limit").toString())), wrapper);
|
||||||
List<UserContribution> userContributions = page.getRecords();
|
List<UserContribution> userContributions = page.getRecords();
|
||||||
|
|||||||
Reference in New Issue
Block a user