cuilei
9 天以前 be784e31cdf09d66c37f811db84e1a6e2bfed8d2
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
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;
 
/**
 * @Description: 租户service接口
 * @author: jeecg-boot
 */
public interface ISysTenantService extends IService<SysTenant> {
 
    /**
     * 查询有效的租户
     *
     * @param idList
     * @return
     */
    List<SysTenant> queryEffectiveTenant(Collection<Integer> idList);
 
    /**
     * 返回某个租户被多少个用户引用了
     *
     * @param id
     * @return
     */
    Long countUserLinkTenant(String id);
 
    /**
     * 根据ID删除租户,会判断是否已被引用
     *
     * @param id
     * @return
     */
    boolean removeTenantById(String id);
 
}