diff --git a/hyp-admin/src/main/java/com/hyp/web/controller/manager/ScoreInfoManager.java b/hyp-admin/src/main/java/com/hyp/web/controller/manager/ScoreInfoManager.java index 05dee17..6ddffa0 100644 --- a/hyp-admin/src/main/java/com/hyp/web/controller/manager/ScoreInfoManager.java +++ b/hyp-admin/src/main/java/com/hyp/web/controller/manager/ScoreInfoManager.java @@ -74,12 +74,12 @@ public class ScoreInfoManager { RewScoreInfoVO rewScoreInfoVO = new RewScoreInfoVO(); LambdaQueryWrapper queryWrapper = new LambdaQueryWrapper<>(); queryWrapper.eq(RewScoreInfo::getApplyId,applyId); - queryWrapper.orderByDesc(RewScoreInfo::getScore); if (!SysUser.isAdmin(SecurityUtils.getUserId())){ queryWrapper.eq(RewScoreInfo::getCreateId, SecurityUtils.getUserId()); }else { rewScoreInfoVO.setAvgScore(avgRewScore(applyId)); } + queryWrapper.orderByDesc(RewScoreInfo::getScore); List list = scoreInfoService.list(queryWrapper); rewScoreInfoVO.setRewScoreInfos(list); return rewScoreInfoVO;