|
|
@@ -18,6 +18,7 @@ import com.ydtech.modules.protocol.utils.AssertionUtils;
|
|
|
import com.ydtech.utils.StringUtils;
|
|
|
import org.springframework.beans.BeanUtils;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
+import org.springframework.transaction.annotation.Transactional;
|
|
|
import org.springframework.util.ObjectUtils;
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
@@ -107,6 +108,7 @@ public class SysDeptServiceImpl extends ServiceImpl<SysDeptMapper, SysDept>
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
+ @Transactional
|
|
|
public void addDept(SysDeptVo sysDeptVo) {
|
|
|
SysDept sysDept = new SysDept();
|
|
|
BeanUtils.copyProperties(sysDeptVo, sysDept);
|
|
|
@@ -183,6 +185,7 @@ public class SysDeptServiceImpl extends ServiceImpl<SysDeptMapper, SysDept>
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
+ @Transactional
|
|
|
public HttpResult updateDept(SysDept record) {
|
|
|
// 查询当前部门序号是否存在
|
|
|
LambdaQueryWrapper<SysDept> qw = new LambdaQueryWrapper<>();
|