Browse Source

绩效评价-评价计划分组修改

master
CMM 1 year ago
parent
commit
59983d302f
2 changed files with 9 additions and 2 deletions
  1. +1
    -1
      pmapi/src/main/java/com/ningdatech/pmapi/performance/controller/VerifyController.java
  2. +8
    -1
      pmapi/src/main/java/com/ningdatech/pmapi/performance/manage/PerformanceAppraisalPlanManage.java

+ 1
- 1
pmapi/src/main/java/com/ningdatech/pmapi/performance/controller/VerifyController.java View File

@@ -41,7 +41,7 @@ public class VerifyController {
return verifyManage.groupProjectList(groupId,req);
}

@PostMapping("/submit-reAppraisal")
@PostMapping("/submit-verify")
@ApiOperation("提交核查")
public String submitVerify(@Valid @RequestBody ProjectAppraisalDTO param){
return verifyManage.submitVerify(param);


+ 8
- 1
pmapi/src/main/java/com/ningdatech/pmapi/performance/manage/PerformanceAppraisalPlanManage.java View File

@@ -476,6 +476,9 @@ public class PerformanceAppraisalPlanManage {
List<PerformanceAppraisalApplication> paas = performanceAppraisalApplicationService.list(Wrappers.lambdaQuery(PerformanceAppraisalApplication.class)
.eq(PerformanceAppraisalApplication::getAppraisalId, id));
performanceAppraisalApplicationService.removeBatchByIds(paas);
// 删除评级计划关联的分组信息
groupService.remove(Wrappers.lambdaQuery(PerformanceAppraisalProjectGroup.class)
.eq(PerformanceAppraisalProjectGroup::getAppraisalId,id));
return "删除成功";
}
return "删除失败";
@@ -502,7 +505,11 @@ public class PerformanceAppraisalPlanManage {
});

if(CollUtil.isNotEmpty(allEmployeeCodes)){
List<UserFullInfoDTO> users = userInfoHelper.getUserFullInfoByEmployeeCodes(allEmployeeCodes);
List<UserFullInfoDTO> users = Lists.newArrayList();
for (String employeeCode : allEmployeeCodes) {
UserFullInfoDTO userFullInfo = userInfoHelper.getUserFullInfoByEmployeeCode(employeeCode);
users.add(userFullInfo);
}
if(CollUtil.isNotEmpty(users)){
userMap = users.stream().collect(Collectors.toMap(UserFullInfoDTO::getEmployeeCode,u -> u));
}


Loading…
Cancel
Save