管道基础大数据平台系统开发-【后端】-Server
src/main/java/com/lf/server/mapper/sys/LoginMapper.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 LoginMapper {
    /**
     * 根据表名查询记录数
     * 查询记录数
     *
     * @param userid 登录人ID
     * @return 记录数
     * @param uname
     * @param type
     * @param start
     * @param end
     * @return
     */
    public Integer selectCount(String userid);
    public Integer selectCount(String uname, Integer type, Timestamp start, Timestamp end);
    /**
     * 根据表名分页查询
     * 分页查询
     *
     * @param userid 表名
     * @param limit  记录表
     * @param offset 偏移量
     * @return 列表
     * @param uname
     * @param type
     * @param start
     * @param end
     * @param limit
     * @param offset
     * @return
     */
    public List<LoginEntity> selectByPage(String userid, Integer limit, Integer offset);
    public List<LoginEntity> selectByPage(String uname, Integer type, Timestamp start, Timestamp end, Integer limit, Integer offset);
    /**
     * 添加数据
     * 插入一条
     *
     * @param loginEntity
     * @return
@@ -41,15 +48,15 @@
    public Integer insertLogin(LoginEntity loginEntity);
    /**
     * 批量添加
     * 插入多条
     *
     * @param loginEntity
     * @param list
     * @return
     */
    public Integer insertLogins(List<LoginEntity> loginEntity);
    public Integer insertLogins(List<LoginEntity> list);
    /**
     * 刪除数据
     * 删除一条
     *
     * @param id
     * @return
@@ -57,7 +64,7 @@
    public Integer deleteLogin(int id);
    /**
     * 批量删除
     * 删除多条
     *
     * @param ids
     * @return
@@ -65,7 +72,7 @@
    public Integer deleteLogins(List<Integer> ids);
    /**
     * 修改数据
     * 更新一条
     *
     * @param loginEntity
     * @return
@@ -81,10 +88,9 @@
    public LoginEntity selectLogin(int id);
    /**
     * 查询全部数据
     * 查询所有
     *
     * @return
     */
    public List<LoginEntity> selectLoginAll();
}
}