package com.moon.server.mapper.sys; import com.moon.server.entity.sys.DownlogEntity; import org.apache.ibatis.annotations.Mapper; import org.springframework.stereotype.Repository; import java.sql.Timestamp; import java.util.List; /** * 下载日志 * @author WWW */ @Mapper @Repository 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 selectByPage(String uname, Integer type, Timestamp start, Timestamp end, Integer limit, Integer offset); /** * 查询所有 * * @return */ public List 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 list); /** * 删除一条 * * @param id * @return */ public Integer delete(int id); /** * 删除多条 * * @param ids * @return */ public Integer deletes(List ids); /** * 更新一条 * * @param entity * @return */ public Integer update(DownlogEntity entity); /** * 更新多条 * * @param list * @return */ public Integer updates(List list); }