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