Commit b2841903 authored by fangxinjiang's avatar fangxinjiang

代码优化-fxj

parent b22fe249
...@@ -626,7 +626,7 @@ public class SysDeptServiceImpl extends ServiceImpl<SysDeptMapper, SysDept> impl ...@@ -626,7 +626,7 @@ public class SysDeptServiceImpl extends ServiceImpl<SysDeptMapper, SysDept> impl
if (Common.isEmpty(updateEntity)){ if (Common.isEmpty(updateEntity)){
return R.failed(CommonConstants.PARAM_IS_NOT_ERROR); return R.failed(CommonConstants.PARAM_IS_NOT_ERROR);
} }
String oldStr = updateEntity.getAncestors(); String oldStr = updateEntity.getAncestors()+","+updateEntity.getDeptId();
String newStr = parentDept.getAncestors()+","+parentDept.getDeptId(); String newStr = parentDept.getAncestors()+","+parentDept.getDeptId();
updateEntity.setParentId(parentDept.getDeptId()); updateEntity.setParentId(parentDept.getDeptId());
updateEntity.setAncestors(parentDept.getAncestors()+","+parentDept.getDeptId()); updateEntity.setAncestors(parentDept.getAncestors()+","+parentDept.getDeptId());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment