2 Commits

Author SHA1 Message Date
  lenovo 0638d28c74 Merge branch 'mqy20260511' of http://114.215.146.132:3000/Mqy/Wisdom-Data into mqy20260511 1 day ago
  lenovo 374acea39e Merge branch 'mqy20260511' of http://114.215.146.132:3000/Mqy/Wisdom-Data into mqy20260511 1 day ago

+ 2
- 2
iot-platform/src/main/java/com/iot/platform/service/TDengineService.java View File

34
     private final Map<String, Set<String>> stableColumnCache = new ConcurrentHashMap<>();
34
     private final Map<String, Set<String>> stableColumnCache = new ConcurrentHashMap<>();
35
     private static final int MAX_CACHE_SIZE = 1000;
35
     private static final int MAX_CACHE_SIZE = 1000;
36
 
36
 
37
-    // 允许的列名字符
38
-    private static final String ALLOWED_COLUMNS = "^[a-zA-Z_][a-zA-Z0-9_]*$";
37
+    // 允许的列名字符(支持中文、字母、数字、下划线)
38
+    private static final String ALLOWED_COLUMNS = "^[a-zA-Z_][a-zA-Z0-9_一-龥]*$";
39
 
39
 
40
     // TDengine 超级表最大列数限制
40
     // TDengine 超级表最大列数限制
41
     private static final int MAX_COLUMNS_PER_STABLE = 4096;
41
     private static final int MAX_COLUMNS_PER_STABLE = 4096;

Loading…
Cancel
Save