|
@@ -150,7 +150,7 @@ func BatchDelClarksonsData(indexIds []int) (existIndex []*data_manage.BaseFromCl
|
|
|
codeToIndex[v.IndexCode] = v
|
|
|
}
|
|
|
|
|
|
- edbInfoList, err := data_manage.GetEdbInfoListByEdbCodes(utils.DATA_SOURCE_SCI_HQ, indexCodes)
|
|
|
+ edbInfoList, err := data_manage.GetEdbInfoListByEdbCodes(utils.DATA_SOURCE_CLARKSONS, indexCodes)
|
|
|
if err != nil {
|
|
|
return
|
|
|
}
|
|
@@ -185,8 +185,8 @@ func DelClarksonsData(indexId int) (err error, errMsg string) {
|
|
|
return
|
|
|
}
|
|
|
|
|
|
- // 获取已经加入到EDB指标库的Sci指标
|
|
|
- edbInfo, err := data_manage.GetEdbInfoByEdbCode(utils.DATA_SOURCE_SCI_HQ, baseFromClarksonsIndex.IndexCode)
|
|
|
+ // 获取已经加入到EDB指标库的clarksons指标
|
|
|
+ edbInfo, err := data_manage.GetEdbInfoByEdbCode(utils.DATA_SOURCE_CLARKSONS, baseFromClarksonsIndex.IndexCode)
|
|
|
if err != nil && err.Error() != utils.ErrNoRow() {
|
|
|
errMsg = "删除失败"
|
|
|
err = errors.New("获取分类下的指标信息失败,Err:" + err.Error())
|
|
@@ -265,7 +265,7 @@ func ClarksonsIndexSource2Edb(req ClarksonsIndexSource2EdbReq, lang string) (edb
|
|
|
utils.FileLog.Info(tips)
|
|
|
}
|
|
|
}()
|
|
|
- source := utils.DATA_SOURCE_SCI_HQ
|
|
|
+ source := utils.DATA_SOURCE_CLARKSONS
|
|
|
|
|
|
// 是否新增过指标
|
|
|
exist, e := data_manage.GetEdbInfoByEdbCode(source, req.EdbCode)
|