diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/performance/manage/PerformanceAppraisalPlanManage.java b/pmapi/src/main/java/com/ningdatech/pmapi/performance/manage/PerformanceAppraisalPlanManage.java index c4efade..b7609bc 100644 --- a/pmapi/src/main/java/com/ningdatech/pmapi/performance/manage/PerformanceAppraisalPlanManage.java +++ b/pmapi/src/main/java/com/ningdatech/pmapi/performance/manage/PerformanceAppraisalPlanManage.java @@ -292,12 +292,16 @@ public class PerformanceAppraisalPlanManage { pa.setUpdateOn(LocalDateTime.now()); pa.setUpdateBy(user.getUsername()); performanceAppraisalService.updateById(pa); - - if(CollUtil.isNotEmpty(editDTO.getProjects())){ + String target = editDTO.getTarget(); + if(StringUtils.isNotBlank(target) && + target.contains(EvalObjectEnum.PROJECT.getCode()) && + CollUtil.isNotEmpty(editDTO.getProjects())){ saveProjects(editDTO,user); } - if(CollUtil.isNotEmpty(editDTO.getApplicationIds())){ + if(StringUtils.isNotBlank(target) && + target.contains(EvalObjectEnum.APP.getCode()) && + CollUtil.isNotEmpty(editDTO.getApplicationIds())){ saveApplications(editDTO,user); }