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;

読み込み中…
キャンセル
保存