管道基础大数据平台系统开发-【后端】-Server
1
13693261870
2022-12-23 8a373a66936407266e860a19c0d44c406baae7cc
src/main/java/com/lf/server/mapper/sys/DownlogMapper.java
@@ -1,9 +1,10 @@
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.util.List;
/**
 * 下载日志
@@ -11,6 +12,85 @@
 */
@Mapper
@Repository
public interface DownlogMapper extends BasicMapper<DownlogEntity> {
    //
public interface DownlogMapper {
    /**
     * 查询记录数
     *
     * @param name 名称
     * @return 记录数
     */
    public Integer selectCount(String name);
    /**
     * 分页查询
     *
     * @param name   名称
     * @param limit  记录数
     * @param offset 偏移量
     * @return 列表
     */
    public List<DownlogEntity> selectByPage(String name, 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);
}