566d2b68810b78839f967002c1325f3fa7a1c32e.svn-base 737 B

1234567891011121314151617181920212223242526272829303132333435
  1. package org.jeecg.modules.system.service;
  2. import com.baomidou.mybatisplus.extension.service.IService;
  3. import org.jeecg.modules.system.entity.SysTenant;
  4. import java.util.Collection;
  5. import java.util.List;
  6. public interface ISysTenantService extends IService<SysTenant> {
  7. /**
  8. * 查询有效的租户
  9. *
  10. * @param idList
  11. * @return
  12. */
  13. List<SysTenant> queryEffectiveTenant(Collection<String> idList);
  14. /**
  15. * 返回某个租户被多少个用户引用了
  16. *
  17. * @param id
  18. * @return
  19. */
  20. int countUserLinkTenant(String id);
  21. /**
  22. * 根据ID删除租户,会判断是否已被引用
  23. *
  24. * @param id
  25. * @return
  26. */
  27. boolean removeTenantById(String id);
  28. }