管道基础大数据平台系统开发-【后端】-Server
1
13693261870
2023-01-11 e8e9d29c54249d8eb1ae458bacc01085e58dc3d8
1
已修改3个文件
34 ■■■■■ 文件已修改
src/main/java/com/lf/server/controller/data/upload/QueryController.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/lf/server/entity/all/StaticData.java 27 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/mapper/data/MetaMapper.xml 5 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/lf/server/controller/data/upload/QueryController.java
@@ -220,7 +220,7 @@
            UserEntity ue = tokenService.getCurrentUser(req);
            int count = metaService.selectCountForUpload(name, ue.getId(), StaticData.FILE_TYPES);
            int count = metaService.selectCountForUpload(name, ue.getId(), null);
            if (count == 0) {
                return success(0, null);
            }
src/main/java/com/lf/server/entity/all/StaticData.java
@@ -80,9 +80,9 @@
    public final static String XLS = ".xls";
    /**
     * SHP文件
     * xlsx文件
     */
    public final static String SHP = ".shp";
    public final static String XLSX = ".xlsx";
    /**
     * MDB文件
@@ -90,19 +90,24 @@
    public final static String MDB = ".mdb";
    /**
     * SHP文件
     */
    public final static String SHP = ".shp";
    /**
     * GDB文件
     */
    public final static String GDB = ".gdb";
    /**
     * xlsx文件
     */
    public final static String XLSX = ".xlsx";
    /**
     * IMG文件
     */
    public final static String IMG = ".img";
    /**
     * MPT文件
     */
    public final static String MPT = ".mpt";
    /**
     * TIF文件
@@ -150,7 +155,7 @@
    public final static String DRUID_COOKIE_KEY = "JSESSIONID";
    /**
     * 上传文件类型
     * 上传文件类型 *
     */
    public final static String FILE_TYPES = "'xls','shp','gdb','mdb'";
@@ -167,17 +172,17 @@
    /**
     * MPT文件扩展名
     */
    public final static List<String> MPT_EXTENSIONS = new ArrayList<>(Arrays.asList(".mpt", ".midx", ".strmi"));
    public final static List<String> MPT_EXTE = new ArrayList<>(Arrays.asList(".midx", ".strmi"));
    /**
     * IMG文件扩展名
     */
    public final static List<String> IMG_EXT = new ArrayList<>(Arrays.asList( ".rrd", ".img.aux.xml", ".hdr", ".img.enp", ".img.xml"));
    public final static List<String> IMG_EXT = new ArrayList<>(Arrays.asList(".rrd", ".img.aux.xml", ".hdr", ".img.enp", ".img.xml"));
    /**
     * TIF文件扩展名
     */
    public final static List<String> TIF_EXTENSIONS = new ArrayList<>(Arrays.asList(".prj", ".tfw", ".tif.ovr", ".tif.aux.xml", ".tif.enp", ".tif.xml"));
    public final static List<String> TIF_EXT = new ArrayList<>(Arrays.asList(".prj", ".tfw", ".tif.ovr", ".tif.aux.xml", ".tif.enp", ".tif.xml"));
    /**
     * TIFF文件扩展名
src/main/resources/mapper/data/MetaMapper.xml
@@ -39,7 +39,10 @@
    <select id="selectCountForUpload" resultType="java.lang.Integer">
        select count(*) from lf.sys_meta
        <where>
            create_user = #{createUser} and type in (${types})
            create_user = #{createUser}
            <if test="types != null">
                and type in (${types})
            </if>
            <if test="name != null">
                and name like #{name}
            </if>