管道基础大数据平台系统开发-【后端】-Server
src/main/java/com/lf/server/mapper/sys/ResMapper.java
@@ -25,17 +25,34 @@
    /**
     * 分页查询
     *
     * @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
     */
@@ -43,12 +60,15 @@
    /**
     * 插入多条
     * @param resEntity
     *
     * @param list
     * @return
     */
    public Integer insertRess(List<ResEntity> resEntity);
    public Integer insertRess(List<ResEntity> list);
    /**
     * 删除一条
     *
     * @param id
     * @return
     */
@@ -56,6 +76,7 @@
    /**
     * 删除多条
     *
     * @param ids
     * @return
     */
@@ -63,6 +84,7 @@
    /**
     * 更新一条
     *
     * @param resEntity
     * @return
     */
@@ -70,6 +92,7 @@
    /**
     * 查询单条数据
     *
     * @param id
     * @return
     */
@@ -77,9 +100,8 @@
    /**
     * 查询所有
     *
     * @return
     */
    public List<ResEntity> selectResAll();
}