From 5c9f31377e3f4dbdb20a5f50f5aaf6fdbbfa87f5 Mon Sep 17 00:00:00 2001 From: 13693261870 <252740454@qq.com> Date: 星期一, 19 十二月 2022 17:21:15 +0800 Subject: [PATCH] 1 --- src/main/java/com/lf/server/entity/all/StaticData.java | 65 ++++++++++++++++++++++++++++---- 1 files changed, 57 insertions(+), 8 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 986eeb5..fdc7653 100644 --- a/src/main/java/com/lf/server/entity/all/StaticData.java +++ b/src/main/java/com/lf/server/entity/all/StaticData.java @@ -1,14 +1,28 @@ package com.lf.server.entity.all; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; + /** * 闈欐�佹暟鎹被 * @author WWW */ public class StaticData { /** - * 鎺掗櫎璺緞锛�"/druid/", + * 鏉冮檺鎺掗櫎璺緞锛�/proxy */ - public final static String[] EXCLUDE_PATH = new String[]{"/swagger", "/sign/", "proxy"}; + public static String[] EXCLUDE_PATH = new String[]{"/swagger", "/sign/", "/error", "/floatserver"}; + + /** + * 鏁板�硷細4 + */ + public final static int FOUR = 4; + + /** + * 鏁板�硷細200 + */ + public final static int TWO_HUNDRED = 200; /** * 鐗堟湰鍙� @@ -36,12 +50,47 @@ public final static String TEXT_ENCODER = "UTF-8"; /** - * 缂撳瓨鍓嶇紑 - */ - public final static String CACHE_PREFIX = "LF"; - - /** * 瀵嗙爜姝e垯琛ㄨ揪寮� */ - public static final 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!@#$%^&*`~()\\-_+=,.?;<>]{8,20}$"; + 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 POINT = "."; + + /** + * 绛夊彿 + */ + public final static String EQ = "="; + + /** + * 鎻掑叆鎺掗櫎瀛楁 + */ + public final static List<String> INSERT_EXCLUDE_FIELDS = new ArrayList<>(Arrays.asList("gid", "objectid", "updateuser", "updatetime", "shape_leng", "shape_area", "dirName", "depName", "verName", "createName", "updateName")); + + /** + * 鏇存柊鎺掗櫎瀛楁 + */ + public final static List<String> UPDATE_EXCLUDE_FIELDS = new ArrayList<>(Arrays.asList("objectid", "createuser", "createtime", "shape_leng", "shape_area", "dirName", "depName", "verName", "createName", "updateName")); + + /** + * 璇诲彇鎺掗櫎瀛楁 + */ + 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", "dirName", "depName", "verName", "createName", "updateName")); + + /** + * MDB鎺掗櫎瀛楁 + */ + public final static List<String> MDB_EXCLUDE_FIELDS = new ArrayList<>(Arrays.asList("Shape", "SHAPE_LENG", "Shape_Length", "Shape_Area", "OBJECTID_1")); + + /** + * GDB鎺掗櫎瀛楁 + */ + public final static List<String> GDB_EXCLUDE_FIELDS= new ArrayList<>(Arrays.asList("geom", "objectid", "shape_leng", "shape_area")); } -- Gitblit v1.9.3