| | |
| | | @ResponseBody |
| | | public interface RoleMapper { |
| | | /** |
| | | * 根据表名查询记录数 |
| | | * 查询记录数 |
| | | * |
| | | * @param name 名称 |
| | | * @param depName 名称 |
| | | * @param name 名称 |
| | | * @param depid 单位ID |
| | | * @return 记录数 |
| | | */ |
| | | public Integer selectCount(String name, String depName); |
| | | public Integer selectCount(String name, Integer depid); |
| | | |
| | | /** |
| | | * 根据表名分页查询 |
| | | * 分页查询 |
| | | * |
| | | * @param name 名称 |
| | | * @param depName 名称 |
| | | * @param name 名称 |
| | | * @param depid 单位ID |
| | | * @param limit 记录表 |
| | | * @param offset 偏移量 |
| | | * @return 列表 |
| | | */ |
| | | public List<RoleEntity> selectByPage(String name,String depName, Integer limit, Integer offset); |
| | | public List<RoleEntity> selectByPage(String name, Integer depid, Integer limit, Integer offset); |
| | | |
| | | /** |
| | | * 添加数据 |
| | | * 插入一条 |
| | | * |
| | | * @param roleEntity |
| | | * @return |
| | |
| | | public Integer insertRole(RoleEntity roleEntity); |
| | | |
| | | /** |
| | | * 批量添加 |
| | | * 插入多条 |
| | | * |
| | | * @param roleEntity |
| | | * @param list |
| | | * @return |
| | | */ |
| | | public Integer insertRoles(List<RoleEntity> roleEntity); |
| | | public Integer insertRoles(List<RoleEntity> list); |
| | | |
| | | /** |
| | | * 刪除数据 |
| | | * 删除一条 |
| | | * |
| | | * @param id |
| | | * @return |
| | |
| | | public Integer deleteRole(int id); |
| | | |
| | | /** |
| | | * 批量删除 |
| | | * 删除多条 |
| | | * |
| | | * @param ids |
| | | * @return |
| | |
| | | public Integer deleteRoles(List<Integer> ids); |
| | | |
| | | /** |
| | | * 修改数据 |
| | | * 更新一条 |
| | | * |
| | | * @param roleEntity |
| | | * @return |
| | |
| | | public RoleEntity selectRole(int id); |
| | | |
| | | /** |
| | | * 查询全部数据 |
| | | * 查询所有 |
| | | * |
| | | * @return |
| | | */ |