|
|
@@ -117,6 +117,12 @@ public class DistributeRankController {
|
|
|
}
|
|
|
|
|
|
Page<DistributeUserRankView> ranks = userDistributeRankStatisticsRecordMapper.selectDistributeRanks(orderByField, statisticsTime, new Page<>(start, limit));
|
|
|
+ ranks.getRecords().forEach(rank->{
|
|
|
+ if (ObjectUtil.equal(userId, rank.getUserId())) {
|
|
|
+ //在前10
|
|
|
+ rank.setIsPrize(true);
|
|
|
+ }
|
|
|
+ });
|
|
|
distributeUserRankPersonalView.setRanks(ranks);
|
|
|
return GatewayResponse.SUCCESS.newBuilder().toResult(distributeUserRankPersonalView);
|
|
|
}
|