Sfoglia il codice sorgente

查询组员评审意见修改

master
WendyYang 1 anno fa
parent
commit
d1e66f3a9a
2 ha cambiato i file con 10 aggiunte e 6 eliminazioni
  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 Vedi 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 Vedi 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…
Annulla
Salva