| | |
| | | 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 com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import org.springblade.system.entity.Strategy; |
| | | |
| | | import java.util.List; |
| | | |
| | |
| | | public interface StrategyMapper extends BaseMapper<Strategy> { |
| | | |
| | | /** |
| | | * 通过ID查询单条数据 |
| | | * |
| | | * @param id 主键 |
| | | * @return 实例对象 |
| | | */ |
| | | Strategy queryById(String id); |
| | | |
| | | /** |
| | | * 查询指定行数据 |
| | | * |
| | | * @param strategy 查询条件 |
| | | * @param pageable 分页对象 |
| | | * @param page 分页对象 |
| | | * @return 对象列表 |
| | | */ |
| | | List<Strategy> queryAllByPage(Strategy strategy, @Param("pageable") Pageable pageable); |
| | | List<Strategy> queryAllByPage(IPage page); |
| | | |
| | | /** |
| | | * 统计总行数 |