月球大数据地理空间分析展示平台-【后端】-月球后台服务
13693261870
2023-09-03 069f8e1f07cdcf0ac09f215468fdb812d3fc8225
src/main/java/com/moon/server/mapper/data/PublishMapper.java
@@ -1,6 +1,7 @@
package com.moon.server.mapper.data;
import com.moon.server.entity.data.MetaEntity;
import com.moon.server.entity.data.MetaPubEntity;
import com.moon.server.entity.data.PublishEntity;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
@@ -17,20 +18,24 @@
    /**
     * 查询记录数
     *
     * @param name 名称
     * @param name    名称
     * @param dircode 目录编码
     * @param type    类别
     * @return 记录数
     */
    public Integer selectCount(String name);
    public Integer selectCount(String name, String dircode, String type);
    /**
     * 分页查询
     *
     * @param name   名称
     * @param limit  记录数
     * @param offset 偏移量
     * @param name    名称
     * @param dircode 目录编码
     * @param type    类别
     * @param limit   记录数
     * @param offset  偏移量
     * @return 列表
     */
    public List<PublishEntity> selectByPage(String name, Integer limit, Integer offset);
    public List<PublishEntity> selectByPage(String name, String dircode, String type, Integer limit, Integer offset);
    /**
     * 查询所有
@@ -54,6 +59,23 @@
     * @return 记录集合
     */
    public List<PublishEntity> selectByIds(String ids);
    /**
     * 根据发布ID查询元数据
     *
     * @param pubid 发布ID
     * @return 元数据集合
     */
    public List<MetaEntity> selectMetasByPubid(Integer pubid);
    /**
     * 根据目录查询DOM和DEM的编码
     *
     * @param dircode 目录
     * @param isDom   1-DOM,0-DEM
     * @return
     */
    public List<String> selectCodesForDir(String dircode, Integer isDom);
    /**
     * 插入一条
@@ -82,6 +104,14 @@
    public Integer insertPubDown(Integer pubid, Integer downid, Integer createUser);
    /**
     * 插入元数据发布类
     *
     * @param mp 元数据发布类
     * @return 影响行数
     */
    public Integer insertMetaPub(MetaPubEntity mp);
    /**
     * 删除一条
     *
     * @param id