月球大数据地理空间分析展示平台-【后端】-月球后台服务
1
13693261870
2024-11-13 e16f5fdfbc1c49f4c519f05b190e96e497253b51
src/main/java/com/moon/server/mapper/sys/ResMapper.java
@@ -2,35 +2,65 @@
import com.moon.server.entity.sys.ResEntity;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.stereotype.Repository;
import java.util.List;
/**
 * 资源表
 * @author sws
 * @date 2022-09-28
 * 资源
 * @author WWW
 */
@Mapper
@ResponseBody
@Repository
public interface ResMapper {
    /**
     * 查询记录数
     *
     * @param name 表名
     * @param name     名称
     * @param status   状态
     * @param category 服务类别
     * @param type     服务类型
     * @param data     数据类型
     * @return 记录数
     */
    public Integer selectCount(String name);
    public Integer selectCount(String name, Integer status, Integer category, Integer type, Integer data);
    /**
     * 分页查询
     *
     * @param name   表名
     * @param limit  记录数
     * @param offset 偏移量
     * @param name     名称
     * @param status   状态
     * @param category 服务类别
     * @param type     服务类型
     * @param data     数据类型
     * @param limit    记录数
     * @param offset   偏移量
     * @return 列表
     */
    public List<ResEntity> selectByPage(String name, Integer limit, Integer offset);
    public List<ResEntity> selectByPage(String name, Integer status, Integer category, Integer type, Integer data, Integer limit, Integer offset);
    /**
     * 查询所有
     *
     * @return
     */
    public List<ResEntity> selectAll();
    /**
     * 根据ID查询
     *
     * @param id
     * @return
     */
    public ResEntity selectById(int id);
    /**
     * 根据发布ID查询
     *
     * @param pubid 发布ID
     * @return
     */
    public ResEntity selectByPubid(Integer pubid);
    /**
     * 根据角色查询记录数
@@ -53,10 +83,10 @@
    /**
     * 插入一条
     *
     * @param resEntity
     * @param entity
     * @return
     */
    public Integer insertRes(ResEntity resEntity);
    public Integer insert(ResEntity entity);
    /**
     * 插入多条
@@ -64,7 +94,7 @@
     * @param list
     * @return
     */
    public Integer insertRess(List<ResEntity> list);
    public Integer inserts(List<ResEntity> list);
    /**
     * 删除一条
@@ -72,7 +102,7 @@
     * @param id
     * @return
     */
    public Integer deleteRes(int id);
    public Integer delete(int id);
    /**
     * 删除多条
@@ -80,31 +110,21 @@
     * @param ids
     * @return
     */
    public Integer deleteRess(List<Integer> ids);
    public Integer deletes(String ids);
    /**
     * 更新一条
     *
     * @param resEntity
     * @param entity
     * @return
     */
    public Integer updateRes(ResEntity resEntity);
    public Integer update(ResEntity entity);
    /**
     * 查询单条数据
     * 更新多条
     *
     * @param id
     * @param list
     * @return
     */
    public ResEntity selectRes(int id);
    /**
     * 查询所有
     *
     * @return
     */
    public List<ResEntity> selectResAll();
    public Integer updates(List<ResEntity> list);
}