zss
2024-11-19 e8d0a2f9375da4d04da4a06a0f9fa8ef448512c4
user-server/src/main/java/com/yuanchu/mom/controller/CompaniesController.java
@@ -59,10 +59,10 @@
        if (ObjectUtils.isNotEmpty(power)){
            List<Company> companies = new ArrayList<>();
            Company company = new Company();
            if (ObjectUtils.isEmpty(user.getCompanyId())){
            if (ObjectUtils.isEmpty(user.getCompany())){
                throw new ErrorException("该用户没有所属单位!");
            }
            company.setCompanyId(user.getCompanyId());
            company.setCompanyId(user.getCompany());
            companies.add(company);
            return Result.success(companies);
        }else {