添加sql逻辑

This commit is contained in:
yangjun 2026-05-13 10:10:44 +08:00
parent 5a2d9a1861
commit 36a6acd656
1 changed files with 2 additions and 0 deletions

View File

@ -1859,6 +1859,8 @@ public class SysBaseApiImpl implements ISysBaseAPI {
@Override @Override
public void addOrgInfo(SysDepartDto dto) { public void addOrgInfo(SysDepartDto dto) {
//先删除后插入
sysDepartService.remove(new QueryWrapper<SysDepart>());
SysDepart sysDepart = new SysDepart(); SysDepart sysDepart = new SysDepart();
BeanUtils.copyProperties(dto,sysDepart); BeanUtils.copyProperties(dto,sysDepart);
sysDepartService.save(sysDepart); sysDepartService.save(sysDepart);