Browse Source

fix:框架详情新增标的名称,标的列表新增通过标的id查询

Roc 3 months ago
parent
commit
73785f2ad8
1 changed files with 3 additions and 2 deletions
  1. 3 2
      controllers/data_manage/ai_predict_model/framework.go

+ 3 - 2
controllers/data_manage/ai_predict_model/framework.go

@@ -630,9 +630,10 @@ func (c *AiPredictModelFrameworkController) Detail() {
 			}
 		}
 
-		if len(aiPredictModelIndexIdList) > 0 {
+		indexIdNum := len(aiPredictModelIndexIdList)
+		if indexIdNum > 0 {
 			indexObj := aiPredictModel.AiPredictModelIndex{}
-			indexList, e := indexObj.GetItemsByCondition(`ai_predict_model_index_id in (?)`, aiPredictModelIndexIdList, []string{}, "")
+			indexList, e := indexObj.GetItemsByCondition(`ai_predict_model_index_id in (`+utils.GetOrmInReplace(indexIdNum)+`)`, aiPredictModelIndexIdList, []string{}, "")
 			if e != nil {
 				if e.Error() == utils.ErrNoRow() {
 					br.Msg = "框架不存在, 请刷新页面"