mirror of
				https://github.com/dromara/RuoYi-Vue-Plus.git
				synced 2025-11-04 16:23:42 +08:00 
			
		
		
		
	fix 修复 开启子部门 父部门未关联开启问题
This commit is contained in:
		@@ -275,6 +275,8 @@ public class SysDeptServiceImpl implements ISysDeptService, DeptService {
 | 
			
		||||
                dept.setAncestors(newAncestors);
 | 
			
		||||
                updateDeptChildren(dept.getDeptId(), newAncestors, oldAncestors);
 | 
			
		||||
            }
 | 
			
		||||
        } else {
 | 
			
		||||
            dept.setAncestors(oldDept.getAncestors());
 | 
			
		||||
        }
 | 
			
		||||
        int result = baseMapper.updateById(dept);
 | 
			
		||||
        if (UserConstants.DEPT_NORMAL.equals(dept.getStatus()) && StringUtils.isNotEmpty(dept.getAncestors())
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user