zhuguifei
2025-04-28 442928123f63ee497d766f9a7a14f0a6ee067e25
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
package org.jeecg.modules.system.service;
 
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.system.entity.SysTenant;
 
import java.util.Collection;
import java.util.List;
 
public interface ISysTenantService extends IService<SysTenant> {
 
    /**
     * 查询有效的租户
     *
     * @param idList
     * @return
     */
    List<SysTenant> queryEffectiveTenant(Collection<String> idList);
 
    /**
     * 返回某个租户被多少个用户引用了
     *
     * @param id
     * @return
     */
    int countUserLinkTenant(String id);
 
    /**
     * 根据ID删除租户,会判断是否已被引用
     *
     * @param id
     * @return
     */
    boolean removeTenantById(String id);
 
}