|
@@ -14,8 +14,8 @@ type EiaSteroController struct {
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
|
|
|
|
|
|
func (this *EiaSteroController) Add() {
|
|
@@ -59,8 +59,8 @@ func (this *EiaSteroController) Add() {
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
|
|
|
|
|
|
func (this *EiaSteroController) Refresh() {
|
|
@@ -71,7 +71,7 @@ func (this *EiaSteroController) Refresh() {
|
|
|
this.Data["json"] = br
|
|
|
this.ServeJSON()
|
|
|
}()
|
|
|
- source := utils.DATA_SOURCE_MYSTEEL_CHEMICAL
|
|
|
+ source := utils.DATA_SOURCE_EIA_STERO
|
|
|
var req models.RefreshEdbInfoReq
|
|
|
err := json.Unmarshal(this.Ctx.Input.RequestBody, &req)
|
|
|
if err != nil {
|
|
@@ -109,7 +109,7 @@ func (this *EiaSteroController) Refresh() {
|
|
|
err = models.RefreshEdbDataFromEiaStero(req.EdbInfoId, req.EdbCode, req.StartDate)
|
|
|
if err != nil && err.Error() != utils.ErrNoRow() {
|
|
|
br.Msg = "刷新指标信息失败!"
|
|
|
- br.ErrMsg = "刷新指标信息失败 RefreshEdbDataFromMysteel,Err:" + err.Error()
|
|
|
+ br.ErrMsg = "刷新指标信息失败 RefreshEdbDataFromEiaStero,Err:" + err.Error()
|
|
|
return
|
|
|
}
|
|
|
|