管道基础大数据平台系统开发-【后端】-Server
13693261870
2022-10-10 6ab82851e9197ebd0e0af10669900bd3c0340df7
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;
/**
@@ -17,20 +18,26 @@
    /**
     * 根据表名查询记录数
     *
     * @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);
    /**
     * 添加数据
@@ -86,5 +93,4 @@
     * @return
     */
    public List<LoginEntity> selectLoginAll();
}
}