田源
2023-03-21 fbe37e2e00bddec409b595a4a6e50c4bb32a008a
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
package org.springblade.system.mapper;
 
 
import org.springblade.system.entity.Strategy;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.data.domain.Pageable;
 
import java.util.List;
 
/**
 * 密码策略(PlSysStrategy)表数据库访问层
 *
 * @author makejava
 * @since 2023-03-20 15:16:15
 */
public interface StrategyMapper extends BaseMapper<Strategy> {
 
    /**
     * 通过ID查询单条数据
     *
     * @param id 主键
     * @return 实例对象
     */
    Strategy queryById(String id);
 
    /**
     * 查询指定行数据
     *
     * @param strategy 查询条件
     * @param pageable      分页对象
     * @return 对象列表
     */
    List<Strategy> queryAllByPage(Strategy strategy, @Param("pageable") Pageable pageable);
 
    /**
     * 统计总行数
     *
     * @param plSysStrategy 查询条件
     * @return 总行数
     */
    long count(Strategy plSysStrategy);
 
}