2 次代码提交

作者 SHA1 备注 提交日期
  lenovo 0638d28c74 Merge branch 'mqy20260511' of http://114.215.146.132:3000/Mqy/Wisdom-Data into mqy20260511 1 天前
  lenovo 374acea39e Merge branch 'mqy20260511' of http://114.215.146.132:3000/Mqy/Wisdom-Data into mqy20260511 1 天前
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2
    2
      iot-platform/src/main/java/com/iot/platform/service/TDengineService.java

+ 2
- 2
iot-platform/src/main/java/com/iot/platform/service/TDengineService.java 查看文件

@@ -34,8 +34,8 @@ public class TDengineService {
34 34
     private final Map<String, Set<String>> stableColumnCache = new ConcurrentHashMap<>();
35 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 40
     // TDengine 超级表最大列数限制
41 41
     private static final int MAX_COLUMNS_PER_STABLE = 4096;

正在加载...
取消
保存