src/main/java/com/zy/crm/system/service/impl/UserServiceImpl.java
@@ -36,6 +36,9 @@ if (Cools.isEmpty(manager)) { Dept dept = deptService.selectById(deptId); Dept parent = deptService.selectById(dept.getParentId()); if (parent == null) { throw new CoolException("保存失败,未找到部门组长"); } manager = this.baseMapper.getDeptManager(hostId, parent.getId()); } if (Cools.isEmpty(manager)) {