| | |
| | | @Repository |
| | | public interface DictMapper { |
| | | /** |
| | | * 根据表名查询记录数 |
| | | * 查询记录数 |
| | | * |
| | | * @param tab 表名 |
| | | * @return 记录数 |
| | |
| | | public Integer selectCount(String tab); |
| | | |
| | | /** |
| | | * 根据表名分页查询 |
| | | * 分页查询 |
| | | * |
| | | * @param tab 表名 |
| | | * @param limit 记录表 |
| | |
| | | public List<DictEntity> selectByPage(String tab, Integer limit, Integer offset); |
| | | |
| | | /** |
| | | * 添加数据 |
| | | * 插入一条 |
| | | * |
| | | * @param dictEntity |
| | | * @return |
| | |
| | | public Integer insertDict(DictEntity dictEntity); |
| | | |
| | | /** |
| | | * 批量添加 |
| | | * 插入多条 |
| | | * |
| | | * @param dictEntity |
| | | * @param list |
| | | * @return |
| | | */ |
| | | public Integer insertDicts(List<DictEntity> dictEntity); |
| | | public Integer insertDicts(List<DictEntity> list); |
| | | |
| | | /** |
| | | * 刪除数据 |
| | | * 删除一条 |
| | | * |
| | | * @param id |
| | | * @return |
| | |
| | | public Integer deleteDict(int id); |
| | | |
| | | /** |
| | | * 批量删除 |
| | | * 删除多条 |
| | | * |
| | | * @param ids |
| | | * @return |
| | |
| | | public Integer deleteDicts(List<Integer> ids); |
| | | |
| | | /** |
| | | * 修改数据 |
| | | * 更新一条 |
| | | * |
| | | * @param dictEntity |
| | | * @return |
| | |
| | | public DictEntity selectDict(int id); |
| | | |
| | | /** |
| | | * 查询全部数据 |
| | | * 查询所有 |
| | | * |
| | | * @return |
| | | */ |