| | |
| | | @ResponseBody |
| | | public interface ResMapper { |
| | | /** |
| | | * 根据表名查询记录数 |
| | | * 查询记录数 |
| | | * |
| | | * @param name 表名 |
| | | * @return 记录数 |
| | |
| | | public Integer selectCount(String name); |
| | | |
| | | /** |
| | | * 根据表名分页查询 |
| | | * 分页查询 |
| | | * |
| | | * @param name 表名 |
| | | * @param name 表名 |
| | | * @param limit 记录表 |
| | | * @param offset 偏移量 |
| | | * @return 列表 |
| | | */ |
| | | public List<ResEntity> selectByPage(String name, Integer limit, Integer offset); |
| | | |
| | | /** |
| | | * 根据角色查询记录数 |
| | | * |
| | | * @param roleid |
| | | * @return |
| | | */ |
| | | public Integer selectCountForRole(Integer roleid); |
| | | |
| | | /** |
| | | * 根据角色分页查询 |
| | | * |
| | | * @param roleid |
| | | * @param limit |
| | | * @param offset |
| | | * @return |
| | | */ |
| | | public List<ResEntity> selectByPageForRole(Integer roleid, Integer limit, Integer offset); |
| | | |
| | | /** |
| | | * 插入一条 |
| | | * |
| | | * @param resEntity |
| | | * @return |
| | | */ |
| | |
| | | |
| | | /** |
| | | * 插入多条 |
| | | * @param resEntity |
| | | * |
| | | * @param list |
| | | * @return |
| | | */ |
| | | public Integer insertRess(List<ResEntity> resEntity); |
| | | public Integer insertRess(List<ResEntity> list); |
| | | |
| | | /** |
| | | * 删除一条 |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | |
| | | |
| | | /** |
| | | * 删除多条 |
| | | * |
| | | * @param ids |
| | | * @return |
| | | */ |
| | |
| | | |
| | | /** |
| | | * 更新一条 |
| | | * |
| | | * @param resEntity |
| | | * @return |
| | | */ |
| | |
| | | |
| | | /** |
| | | * 查询单条数据 |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | | public ResEntity selectRes(int id); |
| | | |
| | | /** |
| | | * 查询全部数据 |
| | | * 查询所有 |
| | | * |
| | | * @return |
| | | */ |
| | | public List<ResEntity> selectResAll(); |
| | | |
| | | |
| | | } |