|
@@ -333,8 +333,11 @@ func (this *MySteelChemicalController) GetIndexCreate() {
|
|
|
this.ServeJSON()
|
|
|
}()
|
|
|
|
|
|
+
|
|
|
+ terminalCode := this.GetString("TerminalCode")
|
|
|
+
|
|
|
indexObj := new(models.BaseFromMysteelChemicalIndex)
|
|
|
- items, err := indexObj.GetIndexCreate()
|
|
|
+ items, err := indexObj.GetIndexCreate(terminalCode)
|
|
|
if err != nil {
|
|
|
br.Msg = "获取失败"
|
|
|
br.ErrMsg = "获取指标失败, Err: " + err.Error()
|
|
@@ -571,6 +574,7 @@ func (this *MySteelChemicalController) MultiUpdateIndex() {
|
|
|
br.Msg = "操作成功"
|
|
|
}
|
|
|
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
@@ -659,6 +663,7 @@ func (this *MySteelChemicalController) GetIndexDetailByCode() {
|
|
|
br.Msg = "获取成功"
|
|
|
}
|
|
|
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
@@ -689,6 +694,10 @@ func (this *MySteelChemicalController) GetIndexCountByFrequency() {
|
|
|
pars = append(pars, req.EndDate)
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ condition += ` AND terminal_code = ? `
|
|
|
+ pars = append(pars, req.TerminalCode)
|
|
|
+
|
|
|
condition += ` AND is_stop = 0 `
|
|
|
|
|
|
indexObj := new(models.BaseFromMysteelChemicalIndex)
|
|
@@ -704,7 +713,7 @@ func (this *MySteelChemicalController) GetIndexCountByFrequency() {
|
|
|
br.Msg = "处理成功"
|
|
|
}
|
|
|
|
|
|
-
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
@@ -736,6 +745,7 @@ func (this *MySteelChemicalController) GetIndexLimitByFrequency() {
|
|
|
br.Msg = "处理成功"
|
|
|
}
|
|
|
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
@@ -767,6 +777,10 @@ func (this *MySteelChemicalController) GetIndexPageByFrequency() {
|
|
|
pars = append(pars, req.EndDate)
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ condition += ` AND terminal_code = ? `
|
|
|
+ pars = append(pars, req.TerminalCode)
|
|
|
+
|
|
|
condition += ` AND is_stop = 0 `
|
|
|
|
|
|
indexObj := new(models.BaseFromMysteelChemicalIndex)
|