From 2fa2af513d0e53478f7186675f01c86e1ac60563 Mon Sep 17 00:00:00 2001 From: zhenggl Date: Thu, 4 May 2023 15:40:03 +0800 Subject: [PATCH] =?UTF-8?q?=E7=95=8C=E9=9D=A2=E6=96=B0=E5=A2=9E=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E9=80=BB=E8=BE=91=E5=88=86=E5=BC=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../athena/app/service/staff/StaffUpdateEAIService.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/demo-athenaopt_backend/develop/src/main/java/com/digiwin/athena/app/service/staff/StaffUpdateEAIService.java b/demo-athenaopt_backend/develop/src/main/java/com/digiwin/athena/app/service/staff/StaffUpdateEAIService.java index 85ec971..55dbd07 100644 --- a/demo-athenaopt_backend/develop/src/main/java/com/digiwin/athena/app/service/staff/StaffUpdateEAIService.java +++ b/demo-athenaopt_backend/develop/src/main/java/com/digiwin/athena/app/service/staff/StaffUpdateEAIService.java @@ -52,12 +52,8 @@ public class StaffUpdateEAIService extends AbsEAIService { //界面 if (OptionEnums.BASIC.getValue().equals(option)){ if (!CollectionUtils.isEmpty(staffList)){ - //区分是否有id没有则新增 - Map> collect = staffList.stream().collect(Collectors.groupingBy(item -> StringUtils.isEmpty(item.getId()))); - List insert = collect.get(true); - staffService.saveBatch(insert); - List update = collect.get(false); - staffRepository.updateStaffList(update, SecurityUtil.getUserProfile().getTenantSid()); + //修改 + staffRepository.updateStaffList(staffList, SecurityUtil.getUserProfile().getTenantSid()); } }else if (OptionEnums.TASK.getValue().equals(option)){ if (!CollectionUtils.isEmpty(staffList)){