|
@@ -616,8 +616,13 @@ func GetSource(sourceName string) (gnSourceName string, source int, err error) {
|
|
|
default:
|
|
|
if strings.Contains(sourceName, "国能购销辅助决策系统") {
|
|
|
gnSourceName = `国能购销辅助决策系统`
|
|
|
+ tableNameSuffix = "purchase_sales"
|
|
|
} else if strings.Contains(sourceName, "国能市场分析平台") {
|
|
|
gnSourceName = `国能市场分析平台`
|
|
|
+ tableNameSuffix = "market_analysis"
|
|
|
+ } else {
|
|
|
+ // TODO 自动生成表名(暂时以时间作为表名后缀,如果客户提前告知了,那么可以直接先建data表,以及edb_source表写入新的source)
|
|
|
+ tableNameSuffix = fmt.Sprint(time.Now().Format(utils.FormatDateTimeUnSpace))
|
|
|
}
|
|
|
}
|
|
|
|