ISysTenantService.java 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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. Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
  46. /**
  47. * 校验企业名称是否唯一
  48. */
  49. boolean checkCompanyNameUnique(SysTenantBo bo);
  50. /**
  51. * 校验账号余额
  52. */
  53. boolean checkAccountBalance(String tenantId);
  54. /**
  55. * 校验有效期
  56. */
  57. boolean checkExpireTime(String tenantId);
  58. /**
  59. * 同步租户套餐
  60. */
  61. Boolean syncTenantPackage(String tenantId, String packageId);
  62. }