月球大数据地理空间分析展示平台-【后端】-月球后台服务
1
13693261870
2024-11-13 024e90554d19c2342f27a26f91bbea378f84da82
src/main/java/com/moon/server/mapper/data/PublishMapper.java
@@ -8,164 +8,45 @@
import java.util.List;
/**
 * 数据发布
 * @author WWW
 */
@Mapper
@Repository
@SuppressWarnings("ALL")
public interface PublishMapper {
    /**
     * 查询记录数
     *
     * @param name    名称
     * @param dircode 目录编码
     * @param type    类别
     * @return 记录数
     */
    public Integer selectCount(String name, String dircode, String type);
    /**
     * 分页查询
     *
     * @param name    名称
     * @param dircode 目录编码
     * @param type    类别
     * @param limit   记录数
     * @param offset  偏移量
     * @return 列表
     */
    public List<PublishEntity> selectByPage(String name, String dircode, String type, Integer limit, Integer offset);
    /**
     * 查询所有
     *
     * @return
     */
    public List<PublishEntity> selectAll();
    /**
     * 根据ID查询
     *
     * @param id
     * @return
     */
    public PublishEntity selectById(int id);
    /**
     * 根据ID字符串查询
     *
     * @param ids ID字符串
     * @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<PublishEntity> selectRaster();
    public PublishEntity selectByLayerId(Integer layerId);
    public List<String> selectCodesForDir(String dircode, Integer isDom);
    /**
     * 插入一条
     *
     * @param entity
     * @return
     */
    public Integer insert(PublishEntity entity);
    /**
     * 插入多条
     *
     * @param list
     * @return
     */
    public Integer inserts(List<PublishEntity> list);
    /**
     * 插入数据发布-下载表
     *
     * @param pubid
     * @param downid
     * @param createUser
     * @return
     */
    public Integer insertPubDown(Integer pubid, Integer downid, Integer createUser);
    /**
     * 插入元数据发布类
     *
     * @param mp 元数据发布类
     * @return 影响行数
     */
    public Integer insertMetaPub(MetaPubEntity mp);
    /**
     * 删除一条
     *
     * @param id
     * @return
     */
    public Integer delete(int id);
    /**
     * 删除多条
     *
     * @param ids
     * @return
     */
    public Integer deletes(String ids);
    /**
     * 更新一条
     *
     * @param entity
     * @return
     */
    public Integer update(PublishEntity entity);
    /**
     * 更新多条
     *
     * @param list
     * @return
     */
    public Integer updates(List<PublishEntity> list);
    /**
     * 查询元数据记录数
     *
     * @param depcode 单位编码
     * @param dircode 目录编码
     * @param verid   版本ID
     * @param types   类别
     * @param name    名称
     * @return 记录数
     */
    public Integer selectMetasByCount(String depcode, String dircode, Integer verid, String types, String name);
    /**
     * 分页查询
     *
     * @param depcode 单位编码
     * @param dircode 目录编码
     * @param verid   版本ID
     * @param types   类别
     * @param name    名称
     * @param limit   记录数
     * @param offset  偏移量
     * @return 列表
     */
    public List<MetaEntity> selectMetasByPage(String depcode, String dircode, Integer verid, String types, String name, Integer limit, Integer offset);
}