月球大数据地理空间分析展示平台-【后端】-月球后台服务
13693261870
2023-12-04 f913d44fbf160caafde4de10a8406d7908dfecd6
修改查询GDB文件接口
已修改3个文件
13 ■■■■ 文件已修改
src/main/java/com/moon/server/mapper/data/MetaMapper.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/moon/server/service/data/MetaService.java 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/mapper/data/MetaMapper.xml 5 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/moon/server/mapper/data/MetaMapper.java
@@ -160,7 +160,7 @@
     * @param ids 元数据ID集合
     * @return 元数据文件集合
     */
    public List<MetaEntity> selectMetaFiles(List<Integer> ids);
    public List<MetaEntity> selectMetaFiles(String ids);
    /**
     * 查询Excel元数据
src/main/java/com/moon/server/service/data/MetaService.java
@@ -134,8 +134,12 @@
        return metaMapper.selectByIdsForTab(ids);
    }
    @Override
    public List<MetaEntity> selectMetaFiles(List<Integer> ids) {
        return metaMapper.selectMetaFiles(StringHelper.join(ids, StaticData.COMMA));
    }
    @Override
    public List<MetaEntity> selectMetaFiles(String ids) {
        return metaMapper.selectMetaFiles(ids);
    }
src/main/resources/mapper/data/MetaMapper.xml
@@ -203,10 +203,7 @@
    <select id="selectMetaFiles" resultType="com.moon.server.entity.data.MetaEntity">
        select a.*, fn_uname(a.create_user) createName, fn_uname(a.update_user) updateName, fn_get_fullname(a.depcode, 1) depName, fn_ver(a.verid) verName, fn_get_fullname(a.dircode, 2) dirName
        from lf.sys_meta a
        where id in
        <foreach item="id" collection="ids" index="index" open="(" separator="," close=")">
            #{id}
        </foreach>
        where id in (#{ids}) or guid in (select guid from lf.sys_meta where type = 'gdb' and id in (#{ids}))
        order by a.id desc
    </select>