管道基础大数据平台系统开发-【后端】-Server
src/main/java/com/lf/server/mapper/sys/ResOpMapper.java
@@ -4,6 +4,7 @@
import org.apache.ibatis.annotations.Mapper;
import org.springframework.web.bind.annotation.ResponseBody;
import java.sql.Timestamp;
import java.util.List;
/**
@@ -15,25 +16,31 @@
@ResponseBody
public interface ResOpMapper {
    /**
     * 根据表名查询记录数
     * 查询记录数
     *
     * @param userid 登录人ID
     * @return 记录数
     * @param name
     * @param type
     * @param start
     * @param end
     * @return
     */
    public Integer selectCount(String userid);
    public Integer selectCount(String name, Integer type, Timestamp start, Timestamp end);
    /**
     * 根据表名分页查询
     * 分页查询
     *
     * @param userid 表名
     * @param limit  记录表
     * @param offset 偏移量
     * @return 列表
     * @param name
     * @param type
     * @param start
     * @param end
     * @param limit
     * @param offset
     * @return
     */
    public List<ResOpEntity> selectByPage(String userid, Integer limit, Integer offset);
    public List<ResOpEntity> selectByPage(String name, Integer type, Timestamp start, Timestamp end, Integer limit, Integer offset);
    /**
     * 添加数据
     * 插入一条
     *
     * @param resOpEntity
     * @return
@@ -41,15 +48,15 @@
    public Integer insertResOp(ResOpEntity resOpEntity);
    /**
     * 批量添加
     * 插入多条
     *
     * @param resOpEntity
     * @param list
     * @return
     */
    public Integer insertResOps(List<ResOpEntity> resOpEntity);
    public Integer insertResOps(List<ResOpEntity> list);
    /**
     * 刪除数据
     * 删除一条
     *
     * @param id
     * @return
@@ -57,7 +64,7 @@
    public Integer deleteResOp(int id);
    /**
     * 批量删除
     * 删除多条
     *
     * @param ids
     * @return
@@ -65,7 +72,7 @@
    public Integer deleteResOps(List<Integer> ids);
    /**
     * 修改数据
     * 更新一条
     *
     * @param resOpEntity
     * @return
@@ -81,7 +88,7 @@
    public ResOpEntity selectResOp(int id);
    /**
     * 查询全部数据
     * 查询所有
     *
     * @return
     */