浏览代码

修复国能数据同步问题并优化数据获取

- 添加修复数据功能,同步国能平台的原始指标编码
- 优化国能数据
Roc 6 月之前
父节点
当前提交
19de413097
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      models/index/edb_update_log.go

+ 1 - 1
models/index/edb_update_log.go

@@ -104,6 +104,6 @@ func GetAllBaseEdbInfo() (item []*EdbInfo, err error) {
 // @param cols
 // @param cols
 // @return err
 // @return err
 func (m *EdbInfo) Update(cols []string) (err error) {
 func (m *EdbInfo) Update(cols []string) (err error) {
-	err = global.MYSQL["data"].Select(cols).Updates(m).Error
+	err = global.MYSQL["index"].Select(cols).Updates(m).Error
 	return
 	return
 }
 }