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 89e425b..c1b1117 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,10 +52,12 @@ public class BasicStaffInfoServiceImpl extends DefaultBaseService implements IBa Map query = new HashMap<>(4); query.put("bindUserAccount",params.get("creator").toString()); BasicStaffInfoDTO dto = basicStaffInfoDao.getById(query); - List ids = new ArrayList<>(); - ids.add(dto.getBasicStaffInfoId()); - query.put("ids",ids); - basicStaffInfoDao.delete(query); + if(dto != null){ + List ids = new ArrayList<>(); + ids.add(dto.getBasicStaffInfoId()); + query.put("ids",ids); + basicStaffInfoDao.delete(query); + } } else { setSaveInfo(params); }