|
@@ -20,15 +20,30 @@ func GetPCSGBloombergGeneralIndex(taskKey, frequency string) (indexes []pcsg.Bas
|
|
|
return
|
|
|
}
|
|
|
for _, v := range apiData {
|
|
|
- if taskKey == "IDpcsgDailyRun11" {
|
|
|
+ switch taskKey {
|
|
|
+ case "IDpcsgDailyRun11":
|
|
|
tList := pcsg.FormatPythonBloombergDailyRun11Data2Base(v, frequency, taskKey)
|
|
|
indexes = append(indexes, tList...)
|
|
|
- } else {
|
|
|
+ case "IDpcsgDailyRunHistV1":
|
|
|
+ t := pcsg.FormatPythonBloombergDailyRunHistV1Data2Base(v, frequency, taskKey)
|
|
|
+ if t.IndexCode != "" {
|
|
|
+ indexes = append(indexes, t)
|
|
|
+ }
|
|
|
+ default:
|
|
|
t := pcsg.FormatPythonBloombergGeneralData2Base(v, frequency, taskKey)
|
|
|
if t.IndexCode != "" {
|
|
|
indexes = append(indexes, t)
|
|
|
}
|
|
|
}
|
|
|
+ /*if taskKey == "IDpcsgDailyRun11" {
|
|
|
+ tList := pcsg.FormatPythonBloombergDailyRun11Data2Base(v, frequency, taskKey)
|
|
|
+ indexes = append(indexes, tList...)
|
|
|
+ } else {
|
|
|
+ t := pcsg.FormatPythonBloombergGeneralData2Base(v, frequency, taskKey)
|
|
|
+ if t.IndexCode != "" {
|
|
|
+ indexes = append(indexes, t)
|
|
|
+ }
|
|
|
+ }*/
|
|
|
}
|
|
|
return
|
|
|
}
|