From ac20dc99bf1f463365dba071973e08fffbd294b4 Mon Sep 17 00:00:00 2001 From: 13693261870 <252740454@qq.com> Date: 星期五, 14 七月 2023 14:12:21 +0800 Subject: [PATCH] 1 --- src/main/java/com/lf/server/entity/all/StaticData.java | 213 ++++++++++++++++++++++++++++++++++++++++++----------- 1 files changed, 168 insertions(+), 45 deletions(-) diff --git a/src/main/java/com/lf/server/entity/all/StaticData.java b/src/main/java/com/lf/server/entity/all/StaticData.java index 2c16dd2..6e8bb7d 100644 --- a/src/main/java/com/lf/server/entity/all/StaticData.java +++ b/src/main/java/com/lf/server/entity/all/StaticData.java @@ -1,5 +1,7 @@ package com.lf.server.entity.all; +import com.alibaba.fastjson.JSON; + import java.util.ArrayList; import java.util.Arrays; import java.util.List; @@ -10,49 +12,71 @@ */ public class StaticData { /** - * 鏉冮檺鎺掗櫎璺緞锛�/proxy + * 鏉冮檺鎺掗櫎璺緞锛�/proxy锛岃姹傚叏閮ㄥ皬鍐� */ - public static String[] EXCLUDE_PATH = new String[]{"/swagger", "/sign/", "/error", "/floatserver"}; + public static String[] EXCLUDE_PATH = new String[]{"/sign/", "/perms/", "/fmeit/", "/crds/", "/floatserver/", "/wmts/select", "/onemap/", "/swagger", "/error"}; - /** - * 鏁板�硷細4 - */ + public final static int TWO = 2; + public final static int FOUR = 4; - /** - * 鏁板�硷細9 - */ public final static int NINE = 9; - /** - * 鏁板�硷細10 - */ public final static int TEN = 10; - /** - * 鏁板�硷細16 - */ public final static int SIXTEEN = 16; - /** - * 鏁板�硷細200 - */ public final static int TWO_HUNDRED = 200; - /** - * 鏁板�硷細1024.0 - */ + public final static int ONE_HUNDRED_THOUSAND = 100000; + + public static final double D75 = 75.0; + + public static final double D100 = 100.0; + public static final double D1024 = 1024.0; - /** - * 鏁板�硷細1050.0 - */ public static final double D1050 = 1050.0; + public static final int I12 = 12; + + public static final int I23 = 23; + + public static final int I24 = 24; + + public static final int I31 = 31; + + public static final int I50 = 50; + + public static final int I60 = 60; + + public static final int I90 = 90; + + public static final int I90_NEG = -90; + + public final static int I100 = 100; + + public static final int I180 = 180; + + public static final int I180_NEG = -180; + + public static final int I1000 = 1000; + + public static final int I2050 = 2050; + + public static final int I4326 = 4326; + + public static final int I4490 = 4490; + /** - * 16杩涘埗 + * 瀛楃1 */ - public static final char[] HEX_DIGITS = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'}; + public final static String S1 = "1"; + + /** + * 绛夊彿 + */ + public final static String EQ = "="; /** * 瀛楃鐐� @@ -60,9 +84,55 @@ public final static String POINT = "."; /** - * 绛夊彿 + * 閫楀彿 */ - public final static String EQ = "="; + public final static String COMMA = ","; + + /** + * 鍗曞紩鍙� + */ + public final static String SINGLE_QUOTES = "'"; + + public final static String BBOREHOLE = "bborehole"; + + /** + * 姝f枩鏉� + */ + public final static String SLASH = "/"; + + public final static String IN = "in"; + + public final static String ZIP = ".zip"; + + public final static String XLS = ".xls"; + + public final static String XLSX = ".xlsx"; + + public final static String MDB = ".mdb"; + + public final static String SHP = ".shp"; + + public final static String GDB = ".gdb"; + + public final static String JPG = ".jpg"; + + public final static String IMG = ".img"; + + public final static String MPT = ".mpt"; + + public final static String D3DML = ".3dml"; + + public final static String TIF = ".tif"; + + public final static String TIFF = ".tiff"; + + public final static String LAS = ".las"; + + public final static String OSGB = ".osgb"; + + public static String ADMIN = "admin"; + + public final static String SYS_META = "sysmeta"; /** * 鐗堟湰鍙� @@ -80,24 +150,14 @@ public final static String TOKEN_COOKIE_KEY = "token"; /** - * Cookie涓璬ruid閿� - */ - public final static String DRUID_COOKIE_KEY = "JSESSIONID"; - - /** * 鏂囨湰缂栫爜鏂瑰紡 */ public final static String TEXT_ENCODER = "UTF-8"; /** - * 瀵嗙爜姝e垯琛ㄨ揪寮� + * 鎬昏川妫� */ - public final static String PWD_REG = "^(?![a-zA-Z]+$)(?![A-Z0-9]+$)(?![A-Z\\W!@#$%^&*`~()\\-_+=,.?;<>]+$)(?![a-z0-9]+$)(?![a-z\\W!@#$%^&*`~()\\-_+=,.?;<>]+$)(?![0-9\\W!@#$%^&*`~()\\-_+=,.?;<>]+$)[a-zA-Z0-9\\W!@#$%^&*`~()\\-_+=,.?;<>]{12,20}$"; - - /** - * 涓婁紶鏂囦欢绫诲瀷 - */ - public final static String FILE_TYPES = "'xls','shp','gdb','mdb'"; + public final static String CHECK_MAIN = "checkMain"; /** * Object瀵硅薄 @@ -105,29 +165,87 @@ public final static String OBJECT = "java.lang.Object"; /** + * Cookie涓璬ruid閿� + */ + public final static String DRUID_COOKIE_KEY = "JSESSIONID"; + + public final static String YES = "YES"; + + public final static String NO = "NO"; + + /** + * 绾胯矾 + */ + public final static String ROUTE = "绾胯矾"; + + /** + * 绌胯法瓒� + */ + public final static String CROSSING = "绌胯法瓒�"; + + public final static String LINESTRING = "LINESTRING"; + + public final static String MULTILINESTRING = "MULTILINESTRING"; + + public final static String POLYGON = "POLYGON"; + + public final static String MULTIPOLYGON = "MULTIPOLYGON"; + + public final static String MULTICURVE = "MULTICURVE"; + + public final static String COMPOUNDCURVE = "COMPOUNDCURVE"; + + public static final String NO_FILE = JSON.toJSONString(new ResponseMsg<String>(HttpStatus.NOT_FOUND, "鏂囦欢鎵句笉鍒�")); + + /** + * 16杩涘埗 + */ + public static final char[] HEX_DIGITS = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'}; + + /** + * 瀵嗙爜姝e垯琛ㄨ揪寮� + */ + public final static String PWD_REG = "^(?![a-zA-Z]+$)(?![A-Z0-9]+$)(?![A-Z\\W!@#$%^&*`~()\\-_+=,.?;<>]+$)(?![a-z0-9]+$)(?![a-z\\W!@#$%^&*`~()\\-_+=,.?;<>]+$)(?![0-9\\W!@#$%^&*`~()\\-_+=,.?;<>]+$)[a-zA-Z0-9\\W!@#$%^&*`~()\\-_+=,.?;<>]{12,20}$"; + + /** * MPT鏂囦欢鎵╁睍鍚� */ - public final static List<String> MPT_EXTENSION = new ArrayList<>(Arrays.asList(".mpt", ".mIdx", ".Strmi")); + public final static List<String> MPT_EXT = new ArrayList<>(Arrays.asList(".midx", ".strmi", ".ei.midx", ".ei.mpt", ".ei.strmi")); + + /** + * JPG鏂囦欢鎵╁睍鍚� + */ + public final static List<String> JPG_EXT = new ArrayList<>(Arrays.asList(".jgw", ".jpg.aux.xml", ".jpg.xml", ".prj")); /** * IMG鏂囦欢鎵╁睍鍚� */ - public final static List<String> IMG_EXTENSION = new ArrayList<>(Arrays.asList(".img", ".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_EXTENSION = new ArrayList<>(Arrays.asList(".tif", ".prj", ".tfw", ".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鏂囦欢鎵╁睍鍚� + */ + public final static List<String> TIFF_EXT = new ArrayList<>(Arrays.asList(".prj", ".tfw", ".tiff.ovr", ".tiff.aux.xml", ".tiff.enp", ".tiff.xml")); /** * SHP鏂囦欢鎵╁睍鍚� */ - public final static List<String> SHP_EXTENSION = new ArrayList<>(Arrays.asList(".shp", ".shx", ".dbf", ".prj", ".cpg", ".qix", ".sbn", ".sbx")); + public final static List<String> SHP_EXT = new ArrayList<>(Arrays.asList(".shx", ".dbf", ".prj", ".cpg")); + + /** + * Mapper鎺掗櫎鎵╁睍鍚� + */ + public final static List<String> MAPPER_EXCLUDE_EXT = new ArrayList<>(Arrays.asList(".img.aux.xml", ".img.xml", ".tif.aux.xml", ".tif.xml", ".tiff.aux.xml", ".tiff.xml", ".shp.xml")); /** * 鎵�鏈夋枃浠舵墿灞曞悕 */ - public final static List<String> ALL_EXTENSION = new ArrayList<>(Arrays.asList(".txt", ".xml", ".pdf", ".xls", ".xlsx", ".doc", ".docx", ".ppt", ".pptx", ".shp", ".gdb", ".mdb", ".dwg", ".las", ".laz", ".mpt", ".fly", ".efb", ".g3d", ".fbx", ".obj", ".3dm", ".3dml", ".osgb", ".rvt", ".ifc", ".jpg", ".png", ".img", ".tif", ".bmp", ".gif", ".rmvb", ".rm", ".mp3", ".mp4", ".avi", ".wma", ".7z", ".rar", ".zip")); + public final static List<String> ALL_EXTENSION = new ArrayList<>(Arrays.asList(".txt", ".xml", ".pdf", ".xls", ".xlsx", ".doc", ".docx", ".ppt", ".pptx", ".shp", ".gdb", ".mdb", ".dwg", ".las", ".laz", ".cpt", ".mpt", ".ei.mpt", ".fly", ".efb", ".g3d", ".fbx", ".obj", ".3dm", ".3dml", ".osgb", ".rvt", ".ifc", ".jpg", ".png", ".img", ".tif", ".tiff", ".dem", ".bmp", ".gif", ".rmvb", ".rm", ".mp3", ".mp4", ".avi", ".wma", ".wmv", ".7z", ".rar", ".zip")); /** * 鎻掑叆鎺掗櫎瀛楁 @@ -142,7 +260,7 @@ /** * 璇诲彇鎺掗櫎瀛楁 */ - public final static List<String> READ_EXCLUDE_FIELDS = new ArrayList<>(Arrays.asList("gid", "objectid", "dirid", "depid", "verid", "createtime", "createuser", "updateuser", "updatetime", "shape_leng", "shape_area", "serialVersionUID", "dirName", "depName", "verName", "createName", "updateName")); + public final static List<String> READ_EXCLUDE_FIELDS = new ArrayList<>(Arrays.asList("gid", "eventid", "parentid", "objectid", "dirid", "depid", "verid", "createtime", "createuser", "updateuser", "updatetime", "shape_leng", "shape_area", "serialversionuid", "dirname", "depname", "vername", "createname", "updatename")); /** * MDB鎺掗櫎瀛楁 @@ -150,6 +268,11 @@ public final static List<String> MDB_EXCLUDE_FIELDS = new ArrayList<>(Arrays.asList("Shape", "SHAPE_LENG", "Shape_Length", "Shape_Area", "OBJECTID_1")); /** + * 鏍囩粯Shp鎺掗櫎瀛楁 + */ + public final static List<String> MARK_EXCLUDE_FIELDS = new ArrayList<>(Arrays.asList("wkt", "geom", "objectid", "shape_leng", "shape_area", "serialVersionUID", "dirName", "depName", "verName", "createName", "updateName")); + + /** * GDB鎺掗櫎瀛楁 */ public final static List<String> GDB_EXCLUDE_FIELDS = new ArrayList<>(Arrays.asList("geom", "objectid", "shape_leng", "shape_area", "serialVersionUID", "dirName", "depName", "verName", "createName", "updateName")); -- Gitblit v1.9.3