@@ -48,14 +48,17 @@ public class ExpertReviewController { | |||||
return expertReviewManage.getExpertReviewDetail(userId, projectId); | return expertReviewManage.getExpertReviewDetail(userId, projectId); | ||||
} | } | ||||
@GetMapping("/listForGroupLeader/{projectId}/{userId}") | |||||
@GetMapping("/listForGroupLeader/{projectId}/{meetingId}/{userId}") | |||||
@ApiImplicitParams({ | @ApiImplicitParams({ | ||||
@ApiImplicitParam(name = "userId", value = "专家ID"), | @ApiImplicitParam(name = "userId", value = "专家ID"), | ||||
@ApiImplicitParam(name = "projectId", value = "项目ID") | |||||
@ApiImplicitParam(name = "projectId", value = "项目ID"), | |||||
@ApiImplicitParam(name = "meetingId", value = "会议ID") | |||||
}) | }) | ||||
@ApiOperation("查看组员评审意见") | @ApiOperation("查看组员评审意见") | ||||
public List<ExpertReviewDetailVO> listForGroupLeader(@PathVariable Long userId, @PathVariable Long projectId) { | |||||
return expertReviewManage.listForGroupLeader(projectId, userId); | |||||
public List<ExpertReviewDetailVO> listForGroupLeader(@PathVariable Long userId, | |||||
@PathVariable Long meetingId, | |||||
@PathVariable Long projectId) { | |||||
return expertReviewManage.listForGroupLeader(projectId, meetingId, userId); | |||||
} | } | ||||
} | } |
@@ -98,10 +98,11 @@ public class ExpertReviewManage { | |||||
return buildExpertReviewDetail(reviews.get(0)); | return buildExpertReviewDetail(reviews.get(0)); | ||||
} | } | ||||
public List<ExpertReviewDetailVO> listForGroupLeader(Long projectId, Long userId) { | |||||
public List<ExpertReviewDetailVO> listForGroupLeader(Long projectId, Long meetingId, Long userId) { | |||||
LambdaQueryWrapper<ExpertReview> query = Wrappers.lambdaQuery(ExpertReview.class); | LambdaQueryWrapper<ExpertReview> query = Wrappers.lambdaQuery(ExpertReview.class); | ||||
query.eq(ExpertReview::getProjectId, projectId); | 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); | query.orderByDesc(ExpertReview::getCreateOn); | ||||
List<ExpertReview> reviews = expertReviewService.list(query); | List<ExpertReview> reviews = expertReviewService.list(query); | ||||
return CollUtils.convert(reviews, this::buildExpertReviewDetail); | return CollUtils.convert(reviews, this::buildExpertReviewDetail); | ||||