From 16d6b30f52a062f747c2075bd2589c9b097d6d53 Mon Sep 17 00:00:00 2001 From: wans <747101512@qq.com> Date: Wed, 19 May 2021 14:37:32 +0800 Subject: [PATCH] 2021-05-19 --- .../service/basicstaffinfo/impl/BasicStaffInfoServiceImpl.java | 1 + 1 file changed, 1 insertion(+) 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 c1b1117..62397df 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 @@ -52,6 +52,7 @@ public class BasicStaffInfoServiceImpl extends DefaultBaseService implements IBa Map query = new HashMap<>(4); query.put("bindUserAccount",params.get("creator").toString()); BasicStaffInfoDTO dto = basicStaffInfoDao.getById(query); + // 如果不为空删除后重新保存 if(dto != null){ List ids = new ArrayList<>(); ids.add(dto.getBasicStaffInfoId());