管道基础大数据平台系统开发-【后端】-Server
13693261870
2024-03-06 f849c87a07300020dbef300c79d1eacfc1439f84
src/main/java/com/lf/server/mapper/sys/DownlogMapper.java
@@ -1,9 +1,11 @@
package com.lf.server.mapper.sys;
import com.lf.server.entity.sys.DownlogEntity;
import com.lf.server.mapper.all.BasicMapper;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
import java.sql.Timestamp;
import java.util.List;
/**
 * 下载日志
@@ -11,6 +13,91 @@
 */
@Mapper
@Repository
public interface DownlogMapper extends BasicMapper<DownlogEntity> {
    //
public interface DownlogMapper {
    /**
     * 查询记录数
     *
     * @param uname
     * @param type
     * @param start
     * @param end
     * @return
     */
    public Integer selectCount(String uname, Integer type, Timestamp start, Timestamp end);
    /**
     * 分页查询
     *
     * @param uname
     * @param type
     * @param start
     * @param end
     * @param limit
     * @param offset
     * @return
     */
    public List<DownlogEntity> selectByPage(String uname, Integer type, Timestamp start, Timestamp end, Integer limit, Integer offset);
    /**
     * 查询所有
     *
     * @return
     */
    public List<DownlogEntity> selectAll();
    /**
     * 根据ID查询
     *
     * @param id
     * @return
     */
    public DownlogEntity selectById(int id);
    /**
     * 插入一条
     *
     * @param entity
     * @return
     */
    public Integer insert(DownlogEntity entity);
    /**
     * 插入多条
     *
     * @param list
     * @return
     */
    public Integer inserts(List<DownlogEntity> list);
    /**
     * 删除一条
     *
     * @param id
     * @return
     */
    public Integer delete(int id);
    /**
     * 删除多条
     *
     * @param ids
     * @return
     */
    public Integer deletes(List<Integer> ids);
    /**
     * 更新一条
     *
     * @param entity
     * @return
     */
    public Integer update(DownlogEntity entity);
    /**
     * 更新多条
     *
     * @param list
     * @return
     */
    public Integer updates(List<DownlogEntity> list);
}