添加sql逻辑
This commit is contained in:
parent
5a2d9a1861
commit
36a6acd656
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue