From b7c2c1f44793b306d9d6dfb8a14f7fa0c0384e08 Mon Sep 17 00:00:00 2001 From: wangxy <1356089412@qq.com> Date: Fri, 26 Apr 2024 15:07:12 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E5=85=AC=E5=91=8A=E6=9F=A5=E8=AF=A2?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E5=BC=80=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/hyp/web/controller/manager/ScoreInfoManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;