ludc
2023-03-31 55d705fdd93a1f21f1d8d448bd280942aa205127
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
package com.vci.ubcs.system.mapper;
 
 
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Param;
import com.vci.ubcs.system.entity.Strategy;
 
import java.util.List;
 
/**
 * 密码策略(PlSysStrategy)表数据库访问层
 *
 * @author ludc
 * @since 2023-03-20 15:16:15
 */
public interface StrategyMapper extends BaseMapper<Strategy> {
 
    /**
     * 查询指定行数据
     *
     * @param page 分页对象
     * @return 对象列表
     */
    List<Strategy> queryAllByPage(IPage page);
 
    /**
     * 统计总行数
     *
     * @param plSysStrategy 查询条件
     * @return 总行数
     */
    long count(Strategy plSysStrategy);
 
    /**
     * 根据用户名以及租户ID查询密码策略
     * @return
     */
    Strategy queryByNameAndTenantId(@Param("tenantId") String tenantId,@Param("name") String name);
 
    /**
     * 根据用户id进行查询
     *
     * @param userId 用户id
     * @return 对象
     */
    Strategy queryByUserId(@Param("userId") Long userId);
 
    Strategy queryByIsDefault();
 
}