From ed4bfbdfc57e7ebd4e8b8d239027604d5deaa3c5 Mon Sep 17 00:00:00 2001 From: wans <747101512@qq.com> Date: Mon, 31 May 2021 14:54:40 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E7=94=A8=E6=88=B7=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E8=A1=A5=E5=85=A8=E9=AA=8C=E8=AF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/basicstaffinfo/impl/BasicStaffInfoServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module-staff/src/main/java/cn/com/tenlion/staff/service/basicstaffinfo/impl/BasicStaffInfoServiceImpl.java b/module-staff/src/main/java/cn/com/tenlion/staff/service/basicstaffinfo/impl/BasicStaffInfoServiceImpl.java index 62397df..6831c12 100644 --- a/module-staff/src/main/java/cn/com/tenlion/staff/service/basicstaffinfo/impl/BasicStaffInfoServiceImpl.java +++ b/module-staff/src/main/java/cn/com/tenlion/staff/service/basicstaffinfo/impl/BasicStaffInfoServiceImpl.java @@ -53,7 +53,7 @@ public class BasicStaffInfoServiceImpl extends DefaultBaseService implements IBa query.put("bindUserAccount",params.get("creator").toString()); BasicStaffInfoDTO dto = basicStaffInfoDao.getById(query); // 如果不为空删除后重新保存 - if(dto != null){ + if(dto != null && dto.getBasicStaffInfoId() != null){ List ids = new ArrayList<>(); ids.add(dto.getBasicStaffInfoId()); query.put("ids",ids);