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 {