中扬CRM客户关系管理系统
#
LSH
2023-12-02 afa3bc1e2f39f66f59ee9b15d6af16593acdc9a4
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)) {