| | |
| | | package org.springblade.system.mapper; |
| | | |
| | | |
| | | import org.springblade.system.entity.Strategy; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.springframework.data.domain.Pageable; |
| | | 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); |
| | | |
| | | /** |
| | | * 统计总行数 |
| | |
| | | */ |
| | | 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(); |
| | | |
| | | } |
| | | |