办学质量监测教学评价系统
zhouweiyi
2025-05-14 584212c5690802dd488924b94a3735e7be34bc6b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
package org.ruoyi.system.service;
 
 
 
import org.ruoyi.core.page.PageQuery;
import org.ruoyi.core.page.TableDataInfo;
import org.ruoyi.system.domain.bo.SysTenantBo;
import org.ruoyi.system.domain.vo.SysTenantVo;
 
import java.util.Collection;
import java.util.List;
 
/**
 * 租户Service接口
 *
 * @author Michelle.Chung
 */
public interface ISysTenantService {
 
    /**
     * 查询租户
     */
    SysTenantVo queryById(Long id);
 
    /**
     * 基于租户ID查询租户
     */
    SysTenantVo queryByTenantId(String tenantId);
 
    /**
     * 查询租户列表
     */
    TableDataInfo<SysTenantVo> queryPageList(SysTenantBo bo, PageQuery pageQuery);
 
    /**
     * 查询租户列表
     */
    List<SysTenantVo> queryList(SysTenantBo bo);
 
    /**
     * 新增租户
     */
    Boolean insertByBo(SysTenantBo bo);
 
    /**
     * 修改租户
     */
    Boolean updateByBo(SysTenantBo bo);
 
    /**
     * 修改租户状态
     */
    int updateTenantStatus(SysTenantBo bo);
 
    /**
     * 校验租户是否允许操作
     */
    void checkTenantAllowed(String tenantId);
 
    /**
     * 校验并批量删除租户信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
 
    /**
     * 校验企业名称是否唯一
     */
    boolean checkCompanyNameUnique(SysTenantBo bo);
 
    /**
     * 校验账号余额
     */
    boolean checkAccountBalance(String tenantId);
 
    /**
     * 校验有效期
     */
    boolean checkExpireTime(String tenantId);
 
    /**
     * 同步租户套餐
     */
    Boolean syncTenantPackage(String tenantId, Long packageId);
 
    /**
     * 同步租户字典
     */
    void syncTenantDict();
}