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);
|
|
}
|