Commit a24cbe2b authored by fangxinjiang's avatar fangxinjiang

代码优化-fxj

parent 4ec5975a
......@@ -627,7 +627,7 @@ public class SysDeptServiceImpl extends ServiceImpl<SysDeptMapper, SysDept> impl
return R.failed(CommonConstants.PARAM_IS_NOT_ERROR);
}
String oldStr = updateEntity.getAncestors()+","+updateEntity.getDeptId();
String newStr = parentDept.getAncestors()+","+parentDept.getDeptId();
String newStr = parentDept.getAncestors()+","+parentDept.getDeptId()+","+updateEntity.getDeptId();
updateEntity.setParentId(parentDept.getDeptId());
updateEntity.setAncestors(parentDept.getAncestors()+","+parentDept.getDeptId());
int res = baseMapper.updateById(updateEntity);
......
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