diff --git a/nursing-unit-system/nu-system-biz/src/main/java/org/jeecg/modules/system/service/impl/SysBaseApiImpl.java b/nursing-unit-system/nu-system-biz/src/main/java/org/jeecg/modules/system/service/impl/SysBaseApiImpl.java index d98c4a11..0490b4b4 100644 --- a/nursing-unit-system/nu-system-biz/src/main/java/org/jeecg/modules/system/service/impl/SysBaseApiImpl.java +++ b/nursing-unit-system/nu-system-biz/src/main/java/org/jeecg/modules/system/service/impl/SysBaseApiImpl.java @@ -1859,6 +1859,8 @@ public class SysBaseApiImpl implements ISysBaseAPI { @Override public void addOrgInfo(SysDepartDto dto) { + //先删除后插入 + sysDepartService.remove(new QueryWrapper()); SysDepart sysDepart = new SysDepart(); BeanUtils.copyProperties(dto,sysDepart); sysDepartService.save(sysDepart);