From d1e66f3a9a40714f9ea5450c3fdb26062bb7b3ef Mon Sep 17 00:00:00 2001 From: WendyYang Date: Mon, 3 Apr 2023 16:35:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E7=BB=84=E5=91=98=E8=AF=84?= =?UTF-8?q?=E5=AE=A1=E6=84=8F=E8=A7=81=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pmapi/expert/controller/ExpertReviewController.java | 11 +++++++---- .../ningdatech/pmapi/expert/manage/ExpertReviewManage.java | 5 +++-- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/expert/controller/ExpertReviewController.java b/pmapi/src/main/java/com/ningdatech/pmapi/expert/controller/ExpertReviewController.java index 19af5fd..552b50a 100644 --- a/pmapi/src/main/java/com/ningdatech/pmapi/expert/controller/ExpertReviewController.java +++ b/pmapi/src/main/java/com/ningdatech/pmapi/expert/controller/ExpertReviewController.java @@ -48,14 +48,17 @@ public class ExpertReviewController { return expertReviewManage.getExpertReviewDetail(userId, projectId); } - @GetMapping("/listForGroupLeader/{projectId}/{userId}") + @GetMapping("/listForGroupLeader/{projectId}/{meetingId}/{userId}") @ApiImplicitParams({ @ApiImplicitParam(name = "userId", value = "专家ID"), - @ApiImplicitParam(name = "projectId", value = "项目ID") + @ApiImplicitParam(name = "projectId", value = "项目ID"), + @ApiImplicitParam(name = "meetingId", value = "会议ID") }) @ApiOperation("查看组员评审意见") - public List listForGroupLeader(@PathVariable Long userId, @PathVariable Long projectId) { - return expertReviewManage.listForGroupLeader(projectId, userId); + public List listForGroupLeader(@PathVariable Long userId, + @PathVariable Long meetingId, + @PathVariable Long projectId) { + return expertReviewManage.listForGroupLeader(projectId, meetingId, userId); } } diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/expert/manage/ExpertReviewManage.java b/pmapi/src/main/java/com/ningdatech/pmapi/expert/manage/ExpertReviewManage.java index 8acd3ac..4d977dc 100644 --- a/pmapi/src/main/java/com/ningdatech/pmapi/expert/manage/ExpertReviewManage.java +++ b/pmapi/src/main/java/com/ningdatech/pmapi/expert/manage/ExpertReviewManage.java @@ -98,10 +98,11 @@ public class ExpertReviewManage { return buildExpertReviewDetail(reviews.get(0)); } - public List listForGroupLeader(Long projectId, Long userId) { + public List listForGroupLeader(Long projectId, Long meetingId, Long userId) { LambdaQueryWrapper query = Wrappers.lambdaQuery(ExpertReview.class); query.eq(ExpertReview::getProjectId, projectId); - query.ne(ExpertReview::getCreateBy, userId); + query.eq(ExpertReview::getMeetingId, meetingId); + query.eq(ExpertReview::getIsFinal, Boolean.FALSE); query.orderByDesc(ExpertReview::getCreateOn); List reviews = expertReviewService.list(query); return CollUtils.convert(reviews, this::buildExpertReviewDetail);