交换机流量数据表改为分表
This commit is contained in:
+2
-2
@@ -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";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user