ISysTenantService.java 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. package com.ruoyi.system.service;
  2. import com.ruoyi.system.domain.vo.SysTenantVo;
  3. import com.ruoyi.system.domain.bo.SysTenantBo;
  4. import com.ruoyi.common.mybatis.core.page.TableDataInfo;
  5. import com.ruoyi.common.mybatis.core.page.PageQuery;
  6. import java.util.Collection;
  7. import java.util.List;
  8. /**
  9. * 租户Service接口
  10. *
  11. * @author Michelle.Chung
  12. */
  13. public interface ISysTenantService {
  14. /**
  15. * 查询租户
  16. */
  17. SysTenantVo queryById(Long id);
  18. /**
  19. * 基于租户ID查询租户
  20. */
  21. SysTenantVo queryByTenantId(String tenantId);
  22. /**
  23. * 查询租户列表
  24. */
  25. TableDataInfo<SysTenantVo> queryPageList(SysTenantBo bo, PageQuery pageQuery);
  26. /**
  27. * 查询租户列表
  28. */
  29. List<SysTenantVo> queryList(SysTenantBo bo);
  30. /**
  31. * 新增租户
  32. */
  33. Boolean insertByBo(SysTenantBo bo);
  34. /**
  35. * 修改租户
  36. */
  37. Boolean updateByBo(SysTenantBo bo);
  38. /**
  39. * 修改租户状态
  40. */
  41. int updateTenantStatus(SysTenantBo bo);
  42. /**
  43. * 校验租户是否允许操作
  44. */
  45. void checkTenantAllowed(String tenantId);
  46. /**
  47. * 校验并批量删除租户信息
  48. */
  49. Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
  50. /**
  51. * 校验企业名称是否唯一
  52. */
  53. boolean checkCompanyNameUnique(SysTenantBo bo);
  54. /**
  55. * 校验账号余额
  56. */
  57. boolean checkAccountBalance(String tenantId);
  58. /**
  59. * 校验有效期
  60. */
  61. boolean checkExpireTime(String tenantId);
  62. /**
  63. * 同步租户套餐
  64. */
  65. Boolean syncTenantPackage(String tenantId, String packageId);
  66. }