Pārlūkot izejas kodu

评审清单

master
PoffyZhang pirms 1 gada
vecāks
revīzija
600f142986
2 mainītis faili ar 0 papildinājumiem un 40 dzēšanām
  1. +0
    -7
      pmapi/src/main/java/com/ningdatech/pmapi/projectdeclared/controller/ReviewChecklistController.java
  2. +0
    -33
      pmapi/src/main/java/com/ningdatech/pmapi/projectdeclared/manage/ReviewChecklistManage.java

+ 0
- 7
pmapi/src/main/java/com/ningdatech/pmapi/projectdeclared/controller/ReviewChecklistController.java Parādīt failu

@@ -59,11 +59,4 @@ public class ReviewChecklistController {
public String summary(@PathVariable String projectCode) {
return reviewChecklistManage.summary(projectCode);
}

@ApiOperation(value = "项目审查清单 审批情况", notes = "项目审查清单 审批情况")
@PostMapping("/approve-list/{projectCode}")
@WebLog("项目审查清单 审批情况")
public List<String> approveList(@PathVariable String projectCode) {
return reviewChecklistManage.approveList(projectCode);
}
}

+ 0
- 33
pmapi/src/main/java/com/ningdatech/pmapi/projectdeclared/manage/ReviewChecklistManage.java Parādīt failu

@@ -352,39 +352,6 @@ public class ReviewChecklistManage {
return BizConst.OP_SUCCESS;
}

/**
* 查询 未审批人员
* @param projectCode
* @return
*/
public List<String> approveList(String projectCode) {
List<String> reviewHumans = Lists.newArrayList();;
if(BizConst.DEV.equals(active)){
reviewHumans = DeclaredProjectContant.ReviewChecklist.REVIEW_HUMANS_ZYD;
}else{
reviewHumans = DeclaredProjectContant.ReviewChecklist.REVIEW_HUMANS_ZZD;
}
Set<String> computeHumanSet = reviewHumans.stream().collect(Collectors.toSet());
List<ReviewChecklistApprove> approves = reviewChecklistApproveService.list(Wrappers.lambdaQuery(ReviewChecklistApprove.class)
.eq(ReviewChecklistApprove::getProjectCode, projectCode)
.orderByAsc(ReviewChecklistApprove::getCreateOn));
if(CollUtil.isEmpty(approves)){
return Collections.emptyList();
}
for(ReviewChecklistApprove approve : approves){
computeHumanSet.remove(approve.getCreateByCode());
}
if(CollUtil.isEmpty(computeHumanSet)){
return Collections.emptyList();
}
List<String> employeeCodes = computeHumanSet.stream().collect(Collectors.toList());
List<UserFullInfoDTO> users = userInfoHelper.getUserFullInfoByEmployeeCodes(employeeCodes);
if(CollUtil.isEmpty(users)){
return Collections.emptyList();
}
return users.stream().map(UserFullInfoDTO::getUsername).collect(Collectors.toList());
}

private List<ReviewChecklistModuleDto> convertModules(List<ReviewChecklistApprove> reviewChecklistApproves) {
//做成map
Map<String, List<ReviewChecklistApprove>> groupSubTitleMap = reviewChecklistApproves.stream()


Notiek ielāde…
Atcelt
Saglabāt