bug
jiangping
2023-12-06 1f4e7d0f73a73e7350cf5a1df279d5f30904c5d5
server/src/main/java/doumeemes/service/ext/impl/CompanyExtServiceImpl.java
@@ -471,6 +471,16 @@
                    }
                }
                initRedisCache(com);
            }else{
                Department department = new Department();
                department.setCompanyId(com.getId());
                department.setDeleted(Constants.ZERO);
                department.setType(Constants.DEPART_TYPE.com);
                department = departmentExtMapper.selectOne(new QueryWrapper<>(department).last("limit 1"));
                if(department == null){
                    throw  new BusinessException(ResponseStatus.ERR_STATUS.getCode(),"对不起,企业信息异常,请联系系统管理员!");
                }
                com.setRootDepartment(department);
            }
        }else{
            if(com == null){