|
@@ -13,10 +13,12 @@ import (
|
|
|
func GetEdbDataTableName(source, subSource int) (tableName string) {
|
|
|
switch source {
|
|
|
case utils.DATA_SOURCE_THS:
|
|
|
- tableName = "edb_data_ths"
|
|
|
- if subSource == utils.DATA_SUB_SOURCE_DATE {
|
|
|
+ switch subSource {
|
|
|
+ case utils.DATA_SUB_SOURCE_DATE:
|
|
|
tableName = "edb_data_ths_ds"
|
|
|
- } else {
|
|
|
+ case utils.DATA_SUB_SOURCE_HIGH_FREQUENCY:
|
|
|
+ tableName = "edb_data_ths_hf"
|
|
|
+ default:
|
|
|
tableName = "edb_data_ths"
|
|
|
}
|
|
|
case utils.DATA_SOURCE_WIND:
|