| | |
| | | package com.lf.server.mapper.data; |
| | | |
| | | |
| | | import com.lf.server.entity.data.DictEntity; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.springframework.stereotype.Repository; |
| | |
| | | @Repository |
| | | public interface DictMapper { |
| | | /** |
| | | * 根据表名查询记录数 |
| | | * |
| | | * @param tab 表名 |
| | | * @return 记录数 |
| | | */ |
| | | public Integer selectCount(String tab); |
| | | |
| | | /** |
| | | * 根据表名分页查询 |
| | | * |
| | | * @param tab 表名 |
| | | * @param limit 记录表 |
| | | * @param offset 偏移量 |
| | | * @return 列表 |
| | | */ |
| | | public List<DictEntity> selectByPage(String tab, Integer limit, Integer offset); |
| | | |
| | | /** |
| | | * 添加数据 |
| | | * |
| | | * @param dictEntity |
| | | * @return |
| | | */ |
| | |
| | | |
| | | /** |
| | | * 批量添加 |
| | | * |
| | | * @param dictEntity |
| | | * @return |
| | | */ |
| | | public Integer insertDicts(List<DictEntity> dictEntity); |
| | | |
| | | /** |
| | | * 刪除数据 |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | |
| | | |
| | | /** |
| | | * 批量删除 |
| | | * |
| | | * @param ids |
| | | * @return |
| | | */ |
| | |
| | | |
| | | /** |
| | | * 修改数据 |
| | | * |
| | | * @param dictEntity |
| | | * @return |
| | | */ |
| | |
| | | |
| | | /** |
| | | * 查询单条数据 |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | |
| | | |
| | | /** |
| | | * 查询全部数据 |
| | | * |
| | | * @return |
| | | */ |
| | | public List<DictEntity> selectDictAll(); |
| | | |
| | | /** |
| | | * 查询表格中文名 |
| | | * |
| | | * @return |
| | | */ |
| | | public List<DictEntity> selectDictTab(); |
| | | |
| | | |
| | | } |