|
@@ -14,7 +14,7 @@ import (
|
|
|
)
|
|
|
|
|
|
// InitPCSGBloombergData 初始化中石油新加坡Bloomberg指标
|
|
|
-func InitPCSGBloombergData(dataPath string, vCode bool, extraLetter string) {
|
|
|
+func InitPCSGBloombergData(dataPath string, taskKey string) {
|
|
|
var err error
|
|
|
defer func() {
|
|
|
if err != nil {
|
|
@@ -32,7 +32,7 @@ func InitPCSGBloombergData(dataPath string, vCode bool, extraLetter string) {
|
|
|
|
|
|
dir := filepath.Dir(path)
|
|
|
dataPath = dir + dataPath
|
|
|
- //dataPath = "docs/dailyHistory-uSQMbp3jkAEy-20240717.xlsx"
|
|
|
+ //dataPath = "docs/dailyHistory-IDpcsgDailyRun7-20240904.xlsx"
|
|
|
f, e := excelize.OpenFile(dataPath)
|
|
|
if e != nil {
|
|
|
err = fmt.Errorf("open file err: %s", e.Error())
|
|
@@ -133,8 +133,7 @@ func InitPCSGBloombergData(dataPath string, vCode bool, extraLetter string) {
|
|
|
requestMap := make(map[string]interface{})
|
|
|
requestMap["IndexCode"] = v.IndexCode
|
|
|
requestMap["DataMap"] = v.DataMap
|
|
|
- requestMap["IsVCode"] = vCode
|
|
|
- requestMap["ExtraLetter"] = extraLetter
|
|
|
+ requestMap["TaskKey"] = taskKey
|
|
|
indexRes, e := PostEdbLib(requestMap, method)
|
|
|
if e != nil {
|
|
|
fmt.Printf("post edb lib err: %s; result: %s", e.Error(), string(indexRes))
|