Browse Source

查询组员评审意见修改

tags/24080901
WendyYang 1 year ago
parent
commit
d1e66f3a9a
2 changed files with 10 additions and 6 deletions
  1. +7
    -4
      pmapi/src/main/java/com/ningdatech/pmapi/expert/controller/ExpertReviewController.java
  2. +3
    -2
      pmapi/src/main/java/com/ningdatech/pmapi/expert/manage/ExpertReviewManage.java

+ 7
- 4
pmapi/src/main/java/com/ningdatech/pmapi/expert/controller/ExpertReviewController.java View File

@@ -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<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);
}

}

+ 3
- 2
pmapi/src/main/java/com/ningdatech/pmapi/expert/manage/ExpertReviewManage.java View File

@@ -98,10 +98,11 @@ public class ExpertReviewManage {
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);
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<ExpertReview> reviews = expertReviewService.list(query);
return CollUtils.convert(reviews, this::buildExpertReviewDetail);


Loading…
Cancel
Save