|
@@ -899,6 +899,7 @@ func (this *TradeCommonController) HisugarIndexData() {
|
|
|
return
|
|
|
}
|
|
|
frequency := this.GetString("Frequency")
|
|
|
+ indexCode := this.GetString("IndexCode")
|
|
|
|
|
|
// 获取指标
|
|
|
var condition string
|
|
@@ -920,6 +921,11 @@ func (this *TradeCommonController) HisugarIndexData() {
|
|
|
pars = append(pars, frequency)
|
|
|
}
|
|
|
|
|
|
+ if indexCode != "" {
|
|
|
+ condition += ` AND index_code=? `
|
|
|
+ pars = append(pars, indexCode)
|
|
|
+ }
|
|
|
+
|
|
|
indexes, err := data_manage.GetHisugarIndex(condition, pars)
|
|
|
if err != nil {
|
|
|
br.Msg = "获取数据失败"
|