linwei
2024-01-23 5745a87f3a139ea2bbdaf4704978e4c151ecc45a
src/main/java/org/springblade/modules/system/service/impl/UserServiceImpl.java
@@ -43,7 +43,9 @@
import org.springblade.core.tool.utils.*;
import org.springblade.modules.auth.enums.UserEnum;
import org.springblade.modules.grid.service.IGridmanService;
import org.springblade.modules.property.entity.PropertyCompanyEntity;
import org.springblade.modules.property.service.IPropertyCompanyDistrictService;
import org.springblade.modules.property.service.IPropertyCompanyService;
import org.springblade.modules.system.entity.*;
import org.springblade.modules.system.excel.UserExcel;
import org.springblade.modules.system.mapper.UserMapper;
@@ -482,6 +484,7 @@
      // 根据用户id 获取用户详情信息
      UserDetailVO userVO = baseMapper.getUserInfo(userId);
      if (null!=userVO){
         // 设置机构
         userVO.setPassword(null);
      }
      // 返回
@@ -526,4 +529,12 @@
      }
      return null;
   }
   @Override
   public List<User> getUserInfoByPropertyId(String propertyCompanyId) {
      // 查询物业公司,获取物业公司的机构
      IPropertyCompanyService bean = SpringUtil.getBean(IPropertyCompanyService.class);
      PropertyCompanyEntity one = bean.getOne(Wrappers.<PropertyCompanyEntity>lambdaQuery().eq(PropertyCompanyEntity::getId, propertyCompanyId));
      return baseMapper.getUserInfoByPropertyId(one.getDeptId().toString());
   }
}