From 257448df0a5f8b2d343d4597d8d6145a877e33ab Mon Sep 17 00:00:00 2001 From: CMM <2198256324@qq.com> Date: Tue, 22 Aug 2023 10:27:50 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=84=E4=BB=B7=E8=AE=A1=E5=88=92=E7=BC=96?= =?UTF-8?q?=E8=BE=91=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../performance/manage/PerformanceAppraisalPlanManage.java | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) 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); }