管道基础大数据平台系统开发-【后端】-Server
13693261870
2023-02-14 05ffa1a7f490e1e81d6fbf1ee948db50b1fff6fc
src/main/java/com/lf/server/mapper/data/MetaMapper.java
@@ -16,24 +16,48 @@
    /**
     * 查询记录数
     *
     * @param depid 单位ID
     * @param dirid 目录ID
     * @param name  名称
     * @param depcode 单位编码
     * @param dircode 目录编码
     * @param verid   版本ID
     * @param name    名称
     * @return 记录数
     */
    public Integer selectCount(Integer depid, Integer dirid, String name);
    public Integer selectCount(String depcode, String dircode, Integer verid, String name);
    /**
     * 分页查询
     *
     * @param depid  单位ID
     * @param dirid  目录ID
     * @param name   名称
     * @param limit  记录数
     * @param offset 偏移量
     * @param depcode 单位编码
     * @param dircode 目录编码
     * @param verid   版本ID
     * @param name    名称
     * @param limit   记录数
     * @param offset  偏移量
     * @return 列表
     */
    public List<MetaEntity> selectByPage(Integer depid, Integer dirid, String name, Integer limit, Integer offset);
    public List<MetaEntity> selectByPage(String depcode, String dircode, Integer verid, String name, Integer limit, Integer offset);
    /**
     * 查询记录数
     *
     * @param depcode
     * @param dirs
     * @param name
     * @return
     */
    public Integer selectMetasForCount(String depcode, String dirs, String name);
    /**
     * 分页查询
     *
     * @param depcode
     * @param dirs
     * @param name
     * @param limit
     * @param offset
     * @return
     */
    public List<MetaEntity> selectMetasForPage(String depcode, String dirs, String name, Integer limit, Integer offset);
    /**
     * 查询上传记录数
@@ -76,9 +100,10 @@
     * 根据GUID查询
     *
     * @param guid 文件GUID
     * @param tab  表名
     * @return
     */
    public MetaEntity selectByGuid(String guid);
    public MetaEntity selectByGuid(String guid, String tab);
    /**
     * 查询元数据文件
@@ -89,6 +114,15 @@
    public List<MetaEntity> selectMetaFiles(List<Integer> ids);
    /**
     * 查询Excel元数据
     *
     * @param ids  元数据ID集合
     * @param tabs 表名字符串
     * @return 元数据文件集合
     */
    public List<MetaEntity> selectXlsAnnex(Integer[] ids, String tabs);
    /**
     * 插入一条
     *
     * @param entity