| | |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 角色-菜单 |
| | | * @author WWW |
| | | */ |
| | | @Mapper |
| | | @Repository |
| | | @SuppressWarnings("ALL") |
| | | public interface RoleMenuAuthMapper { |
| | | /** |
| | | * 查询记录数 |
| | | * |
| | | * @param roleid 角色ID |
| | | * @return 记录数 |
| | | */ |
| | | public Integer selectCount(Integer roleid); |
| | | |
| | | /** |
| | | * 分页查询 |
| | | * |
| | | * @param roleid 角色ID |
| | | * @param limit 记录数 |
| | | * @param offset 偏移量 |
| | | * @return 列表 |
| | | */ |
| | | public List<RoleMenuAuthEntity> selectByPage(Integer roleid, Integer limit, Integer offset); |
| | | |
| | | /** |
| | | * 根据角色ID+菜单ID查询记录数 |
| | | * |
| | | * @param roleid |
| | | * @param menuid |
| | | * @return |
| | | */ |
| | | public Integer selectCountForRole(Integer roleid, Integer menuid); |
| | | |
| | | /** |
| | | * 根据角色ID+菜单ID分页查询 |
| | | * |
| | | * @param roleid |
| | | * @param menuid |
| | | * @param limit |
| | | * @param offset |
| | | * @return |
| | | */ |
| | | public List<RoleMenuAuthEntity> selectByPageForRole(Integer roleid, Integer menuid, Integer limit, Integer offset); |
| | | |
| | | /** |
| | | * 查询所有 |
| | | * |
| | | * @return |
| | | */ |
| | | public List<RoleMenuAuthEntity> selectAll(); |
| | | |
| | | /** |
| | | * 根据ID查询 |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | | public RoleMenuAuthEntity selectById(int id); |
| | | |
| | | /** |
| | | * 插入一条 |
| | | * |
| | | * @param entity |
| | | * @return |
| | | */ |
| | | public Integer insert(RoleMenuAuthEntity entity); |
| | | |
| | | /** |
| | | * 插入多条 |
| | | * |
| | | * @param list |
| | | * @return |
| | | */ |
| | | public Integer inserts(List<RoleMenuAuthEntity> list); |
| | | |
| | | /** |
| | | * 删除一条 |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | | public Integer delete(int id); |
| | | |
| | | /** |
| | | * 删除多条 |
| | | * |
| | | * @param ids |
| | | * @return |
| | | */ |
| | | public Integer deletes(List<Integer> ids); |
| | | |
| | | /** |
| | | * 更新一条 |
| | | * |
| | | * @param entity |
| | | * @return |
| | | */ |
| | | public Integer update(RoleMenuAuthEntity entity); |
| | | |
| | | /** |
| | | * 更新多条 |
| | | * |
| | | * @param list |
| | | * @return |
| | | */ |
| | | public Integer updates(List<RoleMenuAuthEntity> list); |
| | | } |