管道基础大数据平台系统开发-【后端】-Server
13693261870
2024-03-25 b6b0cb226fcf184525ee7b36af3a09471e9c0057
src/main/java/com/lf/server/mapper/sys/BlacklistMapper.java
@@ -16,20 +16,22 @@
    /**
     * 查询记录数
     *
     * @param ip IP地址
     * @param ip   IP地址
     * @param type 类别
     * @return 记录数
     */
    public Integer selectCount(String ip);
    public Integer selectCount(String ip, Integer type);
    /**
     * 分页查询
     *
     * @param ip   IP地址
     * @param limit  记录表
     * @param ip     IP地址
     * @param type   类别
     * @param limit  记录数
     * @param offset 偏移量
     * @return 列表
     */
    public List<BlacklistEntity> selectByPage(String ip, Integer limit, Integer offset);
    public List<BlacklistEntity> selectByPage(String ip, Integer type, Integer limit, Integer offset);
    /**
     * 查询所有
@@ -47,7 +49,14 @@
    public BlacklistEntity selectById(int id);
    /**
     * 添加数据
     * 查询IP列表
     * @param type 类别
     * @return
     */
    public List<String> selectIpList(Integer type);
    /**
     * 插入一条
     *
     * @param entity
     * @return
@@ -55,7 +64,7 @@
    public Integer insert(BlacklistEntity entity);
    /**
     * 批量添加
     * 插入多条
     *
     * @param list
     * @return
@@ -63,7 +72,7 @@
    public Integer inserts(List<BlacklistEntity> list);
    /**
     * 刪除数据
     * 删除一条
     *
     * @param id
     * @return
@@ -71,7 +80,7 @@
    public Integer delete(int id);
    /**
     * 批量删除
     * 删除多条
     *
     * @param ids
     * @return
@@ -79,7 +88,7 @@
    public Integer deletes(List<Integer> ids);
    /**
     * 修改数据
     * 更新一条
     *
     * @param entity
     * @return
@@ -87,7 +96,7 @@
    public Integer update(BlacklistEntity entity);
    /**
     * 批量修改
     * 更新多条
     *
     * @param list
     * @return