管道基础大数据平台系统开发-【后端】-Server
13693261870
2025-07-02 ed8c7a5effd0d423ce1118b680ecdca6fe732609
src/main/java/com/lf/server/mapper/data/PublishMapper.java
@@ -1,5 +1,6 @@
package com.lf.server.mapper.data;
import com.lf.server.entity.data.MetaEntity;
import com.lf.server.entity.data.PublishEntity;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
@@ -16,20 +17,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);
    /**
     * 查询所有
@@ -45,6 +50,23 @@
     * @return
     */
    public PublishEntity selectById(int id);
    /**
     * 根据ID字符串查询
     *
     * @param ids ID字符串
     * @return 记录集合
     */
    public List<PublishEntity> selectByIds(String ids);
    /**
     * 根据目录查询DOM和DEM的编码
     *
     * @param dircode 目录
     * @param isDom   1-DOM,0-DEM
     * @return
     */
    public List<String> selectCodesForDir(String dircode, Integer isDom);
    /**
     * 插入一条
@@ -63,6 +85,16 @@
    public Integer inserts(List<PublishEntity> list);
    /**
     * 插入数据发布-下载表
     *
     * @param pubid
     * @param downid
     * @param createUser
     * @return
     */
    public Integer insertPubDown(Integer pubid, Integer downid, Integer createUser);
    /**
     * 删除一条
     *
     * @param id
@@ -76,7 +108,7 @@
     * @param ids
     * @return
     */
    public Integer deletes(List<Integer> ids);
    public Integer deletes(String ids);
    /**
     * 更新一条
@@ -93,4 +125,30 @@
     * @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);
}