中扬CRM客户关系管理系统
whycq
2023-12-15 a7ba113f05b0b32adbab8bd2c603d31d543a0699
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)) {