交换机流量数据表改为分表

This commit is contained in:
gaoyutao
2025-11-21 18:32:03 +08:00
parent be2d123902
commit c6e778c74e
19 changed files with 747 additions and 73 deletions
@@ -20,7 +20,7 @@ public class TableSubUtil {
* @throws IllegalArgumentException 如果createTime为null
*
* 示例:
* 2023-08-05 14:30:00 → rm_mtr_probe_result_2023_08_01_10
* 2023-08-05 14:30:00 → rm_mtr_probe_result_2023_08_1_10
* 2023-08-15 09:15:00 → rm_mtr_probe_result_2023_08_11_20
* 2023-08-25 18:45:00 → rm_mtr_probe_result_2023_08_21_31
*/
@@ -93,7 +93,7 @@ public class TableSubUtil {
throw new IllegalArgumentException("日期必须在1-31之间");
}
if (day <= 10) return "01_10";
if (day <= 10) return "1_10";
if (day <= 20) return "11_20";
return "21_31";
}